At 08:25 PM 2/10/2001 -0800, you wrote:
>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.
Do I then need to change "function cleanup ()" to "function kill 0 ()" ? Can it be two
words like that? or is this something more generic that doesn't need a declaration.
>--
>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
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software
http://www.cedarcreeksoftware.com
Central Texas IT
http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list