freebsd-dev/sys/compat
Konstantin Belousov 25954d7430 No need to synchronize linux_schedtail with linux_proc_init.
p->p_emuldata is properly initialized in the time when the child can run.

Do not set p->p_emuldata to NULL when the process is exiting.
It does not make any sense and only costs 2 mutex operations.

Do not lock emul_data to unlock it on the very next line.
Comment on possible race while there.

Reparent all procs that are part of a threading group but not its leaders
to init and SIGCHLD init to finish the zombies off. This fixes zombies
left after opera's exit. [1]

There is no need to lock p_em in the linux_proc_init CLONE_THREAD
case because the process cannot change the address of the p_em->shared
because its currently running this code path.
Move assigning of em->shared outside emul_shared_lock.

Noticed by: Scott Robbins <scottro@nyc.rr.com> [1]
Submitted by: rdivacky
2007-02-01 13:29:27 +00:00
..
freebsd32 Regen. 2006-12-20 19:39:10 +00:00
ia32 Move some declaration of 32-bit signal structures into file 2006-10-05 01:56:11 +00:00
linprocfs Use a printf-modifier which doesn't need a cast. 2007-01-21 13:18:52 +00:00
linsysfs MFP4 (110957) 2006-12-03 21:00:31 +00:00
linux No need to synchronize linux_schedtail with linux_proc_init. 2007-02-01 13:29:27 +00:00
ndis add entry points required by newer broadcom wireless driver 2006-12-25 17:04:41 +00:00
netbsd Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
pecoff remove dead code 2005-02-22 01:26:48 +00:00
svr4 Regen. 2006-11-11 21:49:08 +00:00