hush: initial trap support

Mike Frysinger vapier at gentoo.org
Sun Mar 29 09:54:46 UTC 2009


i felt like learning something new and so i took a stab at implementing the 
trap interface.  seems to work fine for me, but i'm not familiar with the 
signal code (job/etc...) in hush, so i took a more conservative approach.  
when a trap is first set, the current sigaction is saved.  then when the trap 
is cleared, the previous sigaction is restored.  this means i need a sigaction 
struct for every signal which adds up pretty quickly.  this patch has overhead 
of 5k data just for this crap.  so clearly this isnt the route we want to go.  
on the flip side, it only(?) adds about 800bytes of code.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hush-trap.patch
Type: text/x-patch
Size: 5894 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090329/7a491c52/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090329/7a491c52/attachment.pgp>


More information about the busybox mailing list