Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: C optimizer Keywords: C pure function optimization Message-ID: <9705@smoke.BRL.MIL> Date: 25 Feb 89 02:15:13 GMT References: <515@larry.UUCP> <9648@smoke.BRL.MIL> <36034@bbn.COM> <3121@ficc.uu.net> <1028@frog.UUCP> <4276@cbnews.ATT.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <4276@cbnews.ATT.COM> lvc@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.