Last change
on this file since 3582 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:
418 bytes
|
Rev | Line | |
---|
[3320] | 1 | # Note: the inner script is a test which checks for a different bug
|
---|
| 2 | # (ordering between INT handler and exit on "set -e"),
|
---|
| 3 | # but so far I did not figure out how to simulate it non-interactively.
|
---|
| 4 |
|
---|
| 5 | "$THIS_SH" -c '
|
---|
| 6 | exit_func() {
|
---|
| 7 | echo "Removing traps"
|
---|
| 8 | trap - EXIT TERM INT
|
---|
| 9 | echo "End of exit_func"
|
---|
| 10 | }
|
---|
| 11 | set -e
|
---|
| 12 | trap exit_func EXIT TERM INT
|
---|
| 13 | sleep 2
|
---|
| 14 | exit 77
|
---|
| 15 | ' &
|
---|
| 16 |
|
---|
| 17 | child=$!
|
---|
| 18 | sleep 1
|
---|
| 19 | kill -TERM $child
|
---|
| 20 | wait
|
---|
| 21 | echo Done: $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.