+ // install the SIGINT handler
+ action.sa_handler = shutdown_handler;
+ sigemptyset(&action.sa_mask);
+ action.sa_flags = 0;
+ if (sigaction(SIGINT, &action, &oact) != 0) {
+ prog_belch("warning: failed to install SIGINT handler");
+ }
+
+#ifndef cygwin32_TARGET_OS
+ siginterrupt(SIGINT, 1); // isn't this the default? --SDM
+#endif
+
+ // install the SIGCONT handler
+ action.sa_handler = cont_handler;
+ sigemptyset(&action.sa_mask);
+ action.sa_flags = 0;
+ if (sigaction(SIGCONT, &action, &oact) != 0) {
+ prog_belch("warning: failed to install SIGCONT handler");
+ }
+
+ // install the SIGFPE handler
+ action.sa_handler = SIG_IGN;
+ sigemptyset(&action.sa_mask);
+ action.sa_flags = 0;
+ if (sigaction(SIGFPE, &action, &oact) != 0) {
+ prog_belch("warning: failed to install SIGFPE handler");
+ }
+#ifdef alpha_TARGET_ARCH
+ ieee_set_fp_control(0);
+#endif
+}
+