For the following script,

------------------------------------------
#!/bin/ash

trap "exit 1" 2
PARPID=$$
(sleep $1;[ -e /proc/$PARPID ] && kill -2 $PARPID)&

if [ -n "$2" ]
then
    echo "$2"
else
    echo "************************************************************" 
>/dev/console
    echo "Press ENTER within $1 second(s) to interrupt the boot process" 
>/dev/console
    echo "************************************************************" 
>/dev/console
fi
read answer </dev/console
exit 0
---------------------------------------ls

I found that the trap "exit1" 2 does not work - it did not trap SIGINT.
If I changed it to trap "exit" 3 then it works.

That is it can trap SIGQUIT but not SIGINT.

Is this a known problem on Busybox 1.13.4?
Thanks.

-Joe



  ________________________________
DISCLAIMER:
This e-mail and any attachments to it may contain confidential and proprietary 
material and is solely for the use of the intended recipient. Any review, use, 
disclosure, distribution or copying of this transmittal is prohibited except by 
or on behalf of the intended recipient. If you have received this transmittal 
in error, please notify the sender and destroy this e-mail and any attachments 
and all copies, whether electronic or printed.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to