Have S51 ignore SIGINT while running under sdcdb.
authorKeith Packard <keithp@keithp.com>
Tue, 6 Jan 2009 05:43:44 +0000 (21:43 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 6 Jan 2009 05:43:44 +0000 (21:43 -0800)
This prevents keyboard interrupts from accidentally stopping
s51.

Signed-off-by: Keith Packard <keithp@keithp.com>
s51/s51-main.c

index eef55157e2c8ead33bbca85695fb2e0439acac1b..96429988d5f4c16662d71667d3a669c98ecf7928 100644 (file)
@@ -150,7 +150,7 @@ main(int argc, char **argv)
                                perror("fdopen");
                                exit(1);
                        }
                                perror("fdopen");
                                exit(1);
                        }
-                       vec.sv_handler = s51_sigint;
+                       vec.sv_handler = SIG_IGN;
                        vec.sv_mask = 0;
                        vec.sv_flags = 0;
                        sigvec(SIGINT, &vec, &ovec);
                        vec.sv_mask = 0;
                        vec.sv_flags = 0;
                        sigvec(SIGINT, &vec, &ovec);