Hi,

How to stop a process from a shell script (or C code)?  I mean 
like pushing Ctrl+Z.  When I try kill -STOP pid, the process 
terminates.  'strace bash' didn't helped.  It makes lots of 
sigaction calls that I can't understand what they are.

Moreover, how to start such a stopped process?  'kill -CONT pid' 
does not work on a process stopped by (the same) bash. BTW, 
strace showed that bash itself do call a kill -CONT.

behdad

-- 
Behdad Esfahbod         28 Mordad 1382, 2003 Aug 19 
http://behdad.org/      [Finger for Geek Code]

If you do a job too well, you'll get stuck with it.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to