<div dir="ltr"><div>Make criu still set scheduler and priority on restored process even</div><div>when its setting is the default one. Or if criu itself has special</div><div>setting on it, forked processes will inherit it, which is a wrong setting</div>
<div>for restored ones.</div><div><br></div><div>Signed-off-by: Yicheng Qin <<a href="mailto:yichengq@google.com">yichengq@google.com</a>></div><div>---</div><div><br></div><div>diff --git a/pie/restorer.c b/pie/restorer.c</div>
<div>index 649482b..c4171bd 100644</div><div>--- a/pie/restorer.c</div><div>+++ b/pie/restorer.c</div><div>@@ -187,9 +187,6 @@ static void restore_sched_info(struct rst_sched_param *p)</div><div> {</div><div> struct sched_param parm;</div>
<div> </div><div>- if ((p->policy == SCHED_OTHER) && (p->nice == 0))</div><div>- return;</div><div>-</div><div> pr_info("Restoring scheduler params %d.%d.%d\n",</div><div>
p->policy, p->nice, p->prio);</div><div><br></div></div>