<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 &lt;<a href="mailto:yichengq@google.com">yichengq@google.com</a>&gt;</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-&gt;policy == SCHED_OTHER) &amp;&amp; (p-&gt;nice == 0))</div><div>-               return;</div><div>-</div><div>        pr_info(&quot;Restoring scheduler params %d.%d.%d\n&quot;,</div><div>
                        p-&gt;policy, p-&gt;nice, p-&gt;prio);</div><div><br></div></div>