Fix a race between fork() and ^Z. If the ^Z is handled just as the forked
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 25 Jun 2005 19:04:37 +0000 (19:04 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 25 Jun 2005 19:04:37 +0000 (19:04 +0000)
commit3a57cd9ca98e824b939d9092a3d45907bfec5007
treeee9b01f0a3cc89f2afd8876c99dd5a14f7d4c7f2
parentdeb5677d60a5e7a0f5374eee22047ff47796c67c
Fix a race between fork() and ^Z.  If the ^Z is handled just as the forked
child is returning from the fork trampoline, the current process designation
is not released and the system stops scheduling userland processes.  Also
fix an initial priority bug.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/i386/i386/trap.c
sys/platform/pc32/i386/trap.c