[Bug 1969] Ash trap command causes current running commands to return immediately

bugzilla at busybox.net bugzilla at busybox.net
Tue Jun 8 03:09:03 UTC 2010


--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  ---
Which bbox version is it?
How do you send USR1 to it?

I am trying to reproduce it with current git:

trap 'echo jake' SIGUSR1
echo pid:$$
while true; do
        echo "before sleep `date +'%H:%M:%S'`"
        sleep 5
        echo "after sleep `date +'%H:%M:%S'`"

# ./busybox ash z
before sleep 05:06:04
after sleep 05:06:09
before sleep 05:06:09
after sleep 05:06:14
before sleep 05:06:14
after sleep 05:06:19
before sleep 05:06:19
after sleep 05:06:24
before sleep 05:06:24
after sleep 05:06:29
before sleep 05:06:29
after sleep 05:06:34
before sleep 05:06:34
after sleep 05:06:39
before sleep 05:06:39
after sleep 05:06:44
before sleep 05:06:44
after sleep 05:06:49
before sleep 05:06:49
after sleep 05:06:54
before sleep 05:06:54

(I was running "kill -USR1 11975" in another terminal)

As you see, it works correctly.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list