Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!mordor!lll-tis!ames!oliveb!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: Using vfork (was Fork and Join, Pipe in C) Message-ID: <22414@sun.uucp> Date: Tue, 30-Jun-87 14:21:43 EDT Article-I.D.: sun.22414 Posted: Tue Jun 30 14:21:43 1987 Date-Received: Wed, 1-Jul-87 06:31:18 EDT References: <7737@brl-adm.ARPA> <1186@ius2.cs.cmu.edu> <8174@utzoo.UUCP> <828@mcgill-vision.UUCP> Sender: news@sun.uucp Lines: 14 > Well, I'm not exactly proud of the technique, but I won't go so far as > to hang my head in shame. Fix it, you say; but what fix would you > recommend I use? Well, first go read the "vfork" manual, paying special attention to the part that says "don't do that", and then change the process to send itself an unused signal (such as SIGUSR[12] on 4.3BSD) if the "exec" fails. Unless somebody is being perverse and randomly sending unused signals around, which is extremely unlikely (and anybody who does that gets what they deserve anyway), the fact that the child was terminated by this signal indicates that the "exec" fails. Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com