From 1f4490522bdcbe611cc858ff72ba284a0a38254e Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Sun, 19 May 2024 20:34:33 -0700 Subject: [PATCH] temp move raise to child --- pending_signal_c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pending_signal_c b/pending_signal_c index 3cdc455..6afef8f 100644 --- a/pending_signal_c +++ b/pending_signal_c @@ -35,7 +35,6 @@ int main(int argc, char **argv) sigemptyset(&set); sigaddset(&set, SIGTERM); sigprocmask(SIG_BLOCK, &set, NULL); - raise(SIGTERM); execv(argv[0], cmd); return 90; @@ -44,6 +43,8 @@ int main(int argc, char **argv) { char msg[] = "reached write()\n"; + raise(SIGTERM); /* temporary move, header comment not for this */ + #if REBLOCK sigemptyset(&set); sigaddset(&set, SIGTERM);