On Thu, Jun 18, 2009 at 01:36:25PM -0700, Joe Lau wrote: > ------------------------------------------ > #!/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.
The SIGINT trap seems to work properly with busybox built from HEAD. > Is this a known problem on Busybox 1.13.4? Perhaps this patch fixed it? http://git.busybox.net/busybox/commit/?id=4b875708c13ec810e8fbd5721a68442f36a9210d -- Colin Watson [[email protected]] _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
