about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-10-09 14:15:18 -0400
committerJune McEnroe <june@causal.agency>2023-10-09 14:15:18 -0400
commitef31f3fa2ca48f7cfc9a5d106f35c53ea4e647c4 (patch)
tree755846e8318a3e890880baef074aa2e888e10b17
parentSet signal mask and use ppoll (diff)
downloadkitd-ef31f3fa2ca48f7cfc9a5d106f35c53ea4e647c4.tar.gz
kitd-ef31f3fa2ca48f7cfc9a5d106f35c53ea4e647c4.zip
Unmask signals before exec!
-rw-r--r--kitd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kitd.c b/kitd.c
index d3dbe3b..2c8ceee 100644
--- a/kitd.c
+++ b/kitd.c
@@ -185,6 +185,7 @@ int main(int argc, char *argv[]) {
 				setpgid(0, 0);
 				dup2(stdoutRW[1], STDOUT_FILENO);
 				dup2(stderrRW[1], STDERR_FILENO);
+				sigprocmask(SIG_SETMASK, &unmask, NULL);
 				execvp(argv[0], (char *const *)argv);
 				err(127, "%s", argv[0]);
 			}