tech-kern archive

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

Anomalies while handling p_nstopchild count



While investigating my problem with the zombie-that-wouldn't-die (see thread on current-users), a couple of anomalies have appeared.

The first of these is reported by Robert Elz in his PR kern/50298 where it appears that the wrong process's p_nstopchild count is being updated.

The second is just reported by me in PR kern/50300:

Shortly after setting the current (exitting) process's p_stat to SDEAD, sys_exit() may reparent the process because of its (current) parent is unwilling to wait() for its children to exit. Unfortunately, proc_reparent() only adjusts the old and new parents' p_nstopchild counts for SZOMB (or, in some cases, SSTOP) processes; since our process is still SDEAD, the parents don't get updated.

I'm just now studying and learning this part of the kernel, so I don't want to commit the changes suggested in these two PRs without having someone else review and approve. Any volunteers? :)




+------------------+--------------------------+-------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
+------------------+--------------------------+-------------------------+


Home | Main Index | Thread Index | Old Index