Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



    Date:        Sun, 13 Nov 2016 12:13:48 +0700
    From:        Robert Elz <kre%munnari.OZ.AU@localhost>
    Message-ID:  <18703.1479014028%andromeda.noi.kre.to@localhost>

  | In an earlier message I said ...

  | and the modification of p_ppid there [to init]
  | could be handled outside proc_reparent()

Too messy.  But, in proc_reparent()

	if (parent == initproc)
		child->p_ppid = parent->p_pid;

(or just " = 1;") would handle all the cases I think.   Could an extra test
and move the p_exitsit setting when being reparented to init so they're
both handled by the same test.

kre



Home | Main Index | Thread Index | Old Index