diff main.c @ 1299:313980d3d78c draft

Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set.
author Rob Landley <rob@landley.net>
date Wed, 21 May 2014 07:24:16 -0500
parents 1f4a56212c83
children 726d3e67d8c1
line wrap: on
line diff
--- a/main.c	Wed May 21 07:09:09 2014 -0500
+++ b/main.c	Wed May 21 07:24:16 2014 -0500
@@ -80,6 +80,7 @@
   }
   toys.old_umask = umask(0);
   if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask);
+  toys.signalfd--;
 }
 
 // Setup toybox global state for this command.