summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-05-21 07:24:16 -0500
committerRob Landley <rob@landley.net>2014-05-21 07:24:16 -0500
commit1bc522424f6bb21842366ccd11953136436b684b (patch)
treea65e3b53e4b39c9b7700110d388346beae8c248f /main.c
parent9b4158c09cdb766369c45dd2dbc44556d0892694 (diff)
downloadtoybox-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 92ec89f..38f6d1a 100644
--- a/main.c
+++ b/main.c
@@ -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.