Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!kalliope!pete From: pete@titan.titan.rice.edu (Pete Keleher) Newsgroups: comp.unix.questions Subject: Signals Message-ID: Date: 7 Feb 89 18:05:30 GMT Sender: usenet@rice.edu Distribution: usa Organization: Rice University Lines: 19 Posting-Front-End: GNU Emacs 18.52.6 of Fri Feb 3 1989 on titan (berkeley-unix) I'm trying to write a simple implementation of an Unix shell to be used as a lab in a class, but I'm having problems handling ^Z. I install a handler for SIGTSTP via 'signal' and then send SIGSTOP to the proper child via 'kill'. 'ps' says at this point the child is stopped and soon swaps out. The parent is marked as sleeping. A 'printf' call followed by a fflusch call immediately follows the 'kill', but it never happens. Clues? Comments? --pete -- =========================================================================== Pete Keleher pete@titan.rice.edu Rice University knows nuttin about what I say, or what I do ... ===========================================================================