about summary refs log tree commit diff
path: root/kitd.c
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 /kitd.c
parentSet signal mask and use ppoll (diff)
downloadkitd-ef31f3fa2ca48f7cfc9a5d106f35c53ea4e647c4.tar.gz
kitd-ef31f3fa2ca48f7cfc9a5d106f35c53ea4e647c4.zip
Unmask signals before exec!
Diffstat (limited to '')
-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]);
 			}
3791d661fd780b8da773499c10ee05d03569&follow=1'>Set push.autoSetupRemoteJune McEnroe 2022-07-08Remove TOURJune McEnroe 2022-07-03Add The Bone Shard EmperorJune McEnroe 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe