[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:32:51 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
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:32 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"

====================================================================== 

---------------------------------------------------------------------- 
 deeptho - 08-15-06 15:32  
---------------------------------------------------------------------- 
This should of course not have been filed under "networking support".
Sorry for that. 

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         
08-15-06 15:32  deeptho        Note Added: 0001567                          
======================================================================




More information about the busybox-cvs mailing list