--- - branch: netbsd-5-2 date: Sat Nov 7 20:42:26 UTC 2015 files: - new: 1.280.4.3.10.1 old: 1.280.4.3 path: src/sys/kern/kern_exec.c pathrev: src/sys/kern/kern_exec.c@1.280.4.3.10.1 type: modified - new: 1.214.4.2.6.1 old: 1.214.4.2 path: src/sys/kern/kern_exit.c pathrev: src/sys/kern/kern_exit.c@1.214.4.2.6.1 type: modified - new: 1.254.2.6.10.1 old: 1.254.2.6 path: src/sys/kern/kern_synch.c pathrev: src/sys/kern/kern_synch.c@1.254.2.6.10.1 type: modified id: 20151107T204226Z.374e6899c2a0d359553f81003d3ecb7e68558d3e log: "Pull up following revision(s) (requested by pgoyette in ticket #1979):\n\tsys/kern/kern_synch.c: revision 1.309\n\tsys/kern/kern_exit.c: revisions 1.246, 1.247\n\tsys/kern/kern_exec.c: revision 1.419\nIn execve_runproc(), update the p_waited entry for the process being\nmoved to SSTOP state, not for its parent. (It is correct to update\nthe parent's p_nstopchild count.) If the value is not already zero,\nit could prevent its parent from waiting for the process.\nFixes PR kern/50298\n--\nWhen clearing out the scheduler queues during system shutdown, we move\nall processes to the SSTOP state. Make sure we update each process's\np_waited and the parents' p_nstopchild counters to maintain consistent\nvalues. Should not make any real difference this late in the shutdown\nprocess, but we should still be consistent just in case.\nFixes PR kern/50318\n--\nCurrently, if a process is exiting and its parent has indicated no intent\nof reaping the process (nor any other children), the process wil get\nreparented to init. Since the state of the exiting process at this point\nis SDEAD, proc_reparent() will not update either the old or new parent's\np_nstopchild counters.\nThis change causes both old and new parents to be properly updated.\nFixes PR kern/50300\n--\nFor processes marked with PS_STOPEXIT, update the process's p_waited\nvalue, and update its parent's p_nstopchild value when marking the\nprocess's p_stat to SSTOP. The process needed to be SACTIVE to get\nhere, so this transition represents an additional process for which\nthe parent needs to wait.\nFixes PR kern/50308\n" module: src subject: 'CVS commit: [netbsd-5-2] src/sys/kern' unixtime: '1446928946' user: snj