On Sat, 10 Feb 2001, Jonathan Wilson wrote:

> I wonder if someone could help with a script I'm trying to
> write.  What this script does is rebuild a src.rpm in
> every possible architecture, and report if it's successful
> or not, as well as log the output.  While writing it I
> discovered that hitting ^C gave my the prompt back, but
> didn't kill all the sub-processes. If I did ps -u I'd
> still see rpm, make, gcc and other things running away: 
> 

Try:

        trap 'kill 0' 0 1 2 3

This should cleanup all the children.


-- 
John Darrah (u05192)    | Dept: N/C Programming
Giddens Industries      | Ph: (425) 353-0405 #229
PO box 3190             | Ph: (206) 767-4212 #229
Everett  WA    98203    | Fx: (206) 764-9639



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to