[BusyBox 0000994]: when a trap command is set, shell script ignores signals nor from parent
bugs at busybox.net
bugs at busybox.net
Tue Aug 15 22:31:18 UTC 2006
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=994
======================================================================
Reported By: deeptho
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 994
Category: Networking Support
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 08-15-2006 15:31 PDT
Last Modified: 08-15-2006 15:31 PDT
======================================================================
Summary: when a trap command is set, shell script ignores
signals nor from parent
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"
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
08-15-06 15:31 deeptho New Issue
08-15-06 15:31 deeptho Status new => assigned
08-15-06 15:31 deeptho Assigned To => BusyBox
======================================================================
More information about the busybox-cvs
mailing list