[BusyBox 0004324]: Busybox ASH cannot trap
bugs at busybox.net
bugs at busybox.net
Sat Jul 26 00:06:07 UTC 2008
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=4324
======================================================================
Reported By: corp186
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 4324
Category: Standards Compliance
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 07-25-2008 10:03 PDT
Last Modified: 07-25-2008 17:06 PDT
======================================================================
Summary: Busybox ASH cannot trap
Description:
The following script hangs up with
kill -HUP %1
from the current shellm but not
with
kill -HUP <processid> from another shell.
Without the trap, it does react to signals
from another shell, but of course it does not run
the signal handler.
This is a bug, right? Is there any way to make
the script handle a signla sent from another shell>
#!/bin/sh
cleanup ()
{
echo "cleaning"
}
trap cleanup HUP
echo "sleeping "
sleep 100000
echo "done"
======================================================================
----------------------------------------------------------------------
vda - 07-25-08 17:06
----------------------------------------------------------------------
I do not see it hanging, the background process seems to be successfully
killed:
# ./ash
/.1/usr/srcdevel/bbox/fix/busybox.t1 # ./ash testcase.sh &
sleeping, pid 8809
/.1/usr/srcdevel/bbox/fix/busybox.t1 # kill -HUP %1
[1] + Done ./ash testcase.sh
/.1/usr/srcdevel/bbox/fix/busybox.t1 #
Can you explain more precisely your testcase?
Issue History
Date Modified Username Field Change
======================================================================
07-25-08 10:03 corp186 New Issue
07-25-08 10:03 corp186 Status new => assigned
07-25-08 10:03 corp186 Assigned To => BusyBox
07-25-08 17:06 vda Note Added: 0009994
======================================================================
More information about the busybox-cvs
mailing list