diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-10 19:02:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-10 19:02:53 +0000 |
commit | 991a1da14806eefd1c6fc8fc1c0c3d2b90af6f24 (patch) | |
tree | 4397962a82c1b4c161ee3b9af88943d64c5b993b /shell/ash_doc.txt | |
parent | 0ef240d979b0ffcad104a6844cee4c72640844f5 (diff) | |
download | busybox-w32-991a1da14806eefd1c6fc8fc1c0c3d2b90af6f24.tar.gz busybox-w32-991a1da14806eefd1c6fc8fc1c0c3d2b90af6f24.tar.bz2 busybox-w32-991a1da14806eefd1c6fc8fc1c0c3d2b90af6f24.zip |
ash: fix "orwell bug" 1984. Testcase:
trap_handler() {
echo trap
}
trap trap_handler USR1
sleep 3600 &
while true; do wait; done
Diffstat (limited to 'shell/ash_doc.txt')
-rw-r--r-- | shell/ash_doc.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/shell/ash_doc.txt b/shell/ash_doc.txt new file mode 100644 index 000000000..28c574841 --- /dev/null +++ b/shell/ash_doc.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | Wait + signals | ||
2 | |||
3 | We had some bugs here which are hard to test in testsuite. | ||
4 | |||
5 | Bug 1280 (http://busybox.net/bugs/view.php?id=1280): | ||
6 | was misbehaving in interactive ash. Correct behavior: | ||
7 | |||
8 | $ sleep 20 & | ||
9 | $ wait | ||
10 | ^C | ||
11 | $ wait | ||
12 | ^C | ||
13 | $ wait | ||
14 | ^C | ||
15 | ... | ||
16 | |||
17 | Bug 1984 (http://busybox.net/bugs/view.php?id=1984): | ||
18 | traps were not triggering: | ||
19 | |||
20 | trap_handler_usr () { | ||
21 | echo trap usr | ||
22 | } | ||
23 | trap_handler_int () { | ||
24 | echo trap int | ||
25 | } | ||
26 | trap trap_handler_usr USR1 | ||
27 | trap trap_handler_int INT | ||
28 | sleep 3600 & | ||
29 | echo "Please do: kill -USR1 $$" | ||
30 | echo "or: kill -INT $$" | ||
31 | while true; do wait; echo wait interrupted; done | ||