Skip to content

Commit

Permalink
single: ignore SIGINT in self-extracting process
Browse files Browse the repository at this point in the history
  • Loading branch information
eworm-de committed Jun 14, 2017
1 parent 081d99d commit f0c5bfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vis-single.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ int main(int argc, char **argv) {
return EXIT_FAILURE;
}

signal(SIGINT, SIG_IGN);

for (;;) {
int status;
int w = waitpid(child_pid, &status, 0);
Expand Down

0 comments on commit f0c5bfe

Please sign in to comment.