Date: Sun, 14 Nov 1999 08:52:10 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Peter J. Farley III" cc: djgpp AT delorie DOT com Subject: Re: Are there any DJGPP examples of spawning child processes? In-Reply-To: <382ccf3b.3013888@news3.banet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 13 Nov 1999, Peter J. Farley III wrote: > I'm trying to find some simple sample DJGPP code for spawning a child > process; getting it's status when it's done; transforming SIGQUIT and > SIG_INT to SIG_IGN while the child is running; and resetting SIGQUIT > and SIG_INT after the child returns. If anyone can point me at any > such code examples (book, web, ftp, etc. references welcome). Try any port of a GNU program that can launch other programs. GNU Make and Emacs are two examples that come to mind. For GNU Make, look in the file job.c; for Emacs, look in the file sysdep.c. I think GNU Find (from Findutils) also catches signals while the child program runs.