From: | Jorge Almeida <jalmeida@××××××××××××.pt> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Re: [OT] kill a child and suicide | ||
Date: | Wed, 03 May 2006 16:32:28 | ||
Message-Id: | Pine.LNX.4.64.0605031720430.27711@jmaa.math.ist.utl.pt | ||
In Reply to: | [gentoo-user] Re: [OT] kill a child and suicide by Moshe Kaminsky |
1 | On Wed, 3 May 2006, Moshe Kaminsky wrote: |
2 | |
3 | > You can use 'kill 0' to send a signal to your own process group. |
4 | > Something like this: |
5 | > |
6 | > #!/bin/sh |
7 | > trap 'kill 0;exit' TERM |
8 | > echo "before" |
9 | > ( sleep 30; echo inside ) |
10 | > echo "after" |
11 | > |
12 | No use. trap will wait till the running child is completed, which is not what |
13 | I want (as reply of Hans-Werner). |
14 | |
15 | Thanks. |
16 | -- |
17 | Jorge Almeida |
18 | -- |
19 | gentoo-user@g.o mailing list |
Subject | Author |
---|---|
[gentoo-user] Re: [OT] kill a child and suicide | Moshe Kaminsky <kaminsky@××××××××××××.il> |