aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2017-06-14 11:20:37 +0200
committerChristian Hesse <mail@eworm.de>2017-06-14 11:20:37 +0200
commitf0c5bfe978c1ffe1024f0cf594c971f5bcc30630 (patch)
tree8c684ffc7d05d87be3d7aa7a829ccff60ed6469d
parent081d99dda082a360dad367e8e2cc036a738edca5 (diff)
downloadvis-f0c5bfe978c1ffe1024f0cf594c971f5bcc30630.tar.gz
vis-f0c5bfe978c1ffe1024f0cf594c971f5bcc30630.tar.xz
single: ignore SIGINT in self-extracting process
-rw-r--r--vis-single.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-single.c b/vis-single.c
index d8653c9..8e06de5 100644
--- a/vis-single.c
+++ b/vis-single.c
@@ -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);