Skip to content

Commit

Permalink
temp move raise to child
Browse files Browse the repository at this point in the history
  • Loading branch information
nmisch committed May 20, 2024
1 parent 815b78a commit 1f44905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pending_signal_c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 1f44905

Please sign in to comment.