Last change
on this file since 3405 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
331 bytes
|
Line | |
---|
1 | "$THIS_SH" -c '
|
---|
2 | exit_func() {
|
---|
3 | echo "Removing traps"
|
---|
4 | trap - EXIT TERM INT
|
---|
5 | echo "End of exit_func"
|
---|
6 | }
|
---|
7 | set -e
|
---|
8 | trap exit_func EXIT TERM INT
|
---|
9 | sleep 2
|
---|
10 | exit 77
|
---|
11 | ' &
|
---|
12 |
|
---|
13 | sleep 1
|
---|
14 | # BUG: ash kills -PGRP, but in non-interactive shell we do not create pgrps!
|
---|
15 | # In this case, bash kills by PID, not PGRP.
|
---|
16 | kill -TERM %1
|
---|
17 | wait
|
---|
18 | echo Done: $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.