Mail Archives: djgpp/1999/11/14/03:52:06
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.
- Raw text -