C optimizer
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Feb 25 12:15:13 AEST 1989
In article <4276 at cbnews.ATT.COM> lvc at cbnews.ATT.COM (Lawrence V. Cipriani) writes:
-How about if the left hand getpid() is called, and before the right hand
-getpid() is called a signal comes in, causing a signal handler to be called,
-then the signal handler does a fork. Then, the interrupt handler returns
-and the right hand getpid() is called. Voila!
Anyone who fork()s then returns inside a signal handler deserves to suffer.
More information about the Comp.lang.c
mailing list