C optimizer

Lawrence V. Cipriani lvc at cbnews.ATT.COM
Fri Feb 24 02:09:38 AEST 1989


In article <1028 at frog.UUCP> john at frog.UUCP (John Woods) writes:
>I think that if
>
>	(getpid() != getpid())
>
>ever evaluated to 1, I would be severely astonished.

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!
-- 
Larry Cipriani, att!cbnews!lvc or lvc at cbnews.att.com



More information about the Comp.lang.c mailing list