diff options
author | Rob Landley <rob@landley.net> | 2014-05-21 07:24:16 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-05-21 07:24:16 -0500 |
commit | 1bc522424f6bb21842366ccd11953136436b684b (patch) | |
tree | a65e3b53e4b39c9b7700110d388346beae8c248f /main.c | |
parent | 9b4158c09cdb766369c45dd2dbc44556d0892694 (diff) | |
download | toybox-1bc522424f6bb21842366ccd11953136436b684b.tar.gz toybox-1bc522424f6bb21842366ccd11953136436b684b.tar.bz2 toybox-1bc522424f6bb21842366ccd11953136436b684b.zip |
Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -80,6 +80,7 @@ static void toy_singleinit(struct toy_list *which, char *argv[]) } toys.old_umask = umask(0); if (!(which->flags & TOYFLAG_UMASK)) umask(toys.old_umask); + toys.signalfd--; } // Setup toybox global state for this command. |