Mercurial > hg > xemacs-beta
comparison src/signal.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 3ecd8885ac67 |
children | 5fd7ba8b56e7 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
29 #include "frame.h" | 29 #include "frame.h" |
30 #include "sysdep.h" | 30 #include "sysdep.h" |
31 #include "syssignal.h" | 31 #include "syssignal.h" |
32 #include "systime.h" | 32 #include "systime.h" |
33 | 33 |
34 #ifdef HAVE_UNISTD_H | 34 #include "sysfile.h" |
35 #include <unistd.h> | |
36 #endif | |
37 #include <errno.h> | |
38 | 35 |
39 /* Set to 1 when a quit-check signal (either a SIGIO interrupt or | 36 /* Set to 1 when a quit-check signal (either a SIGIO interrupt or |
40 the asynch. timeout for poll-for-quit) occurs. The QUITP | 37 the asynch. timeout for poll-for-quit) occurs. The QUITP |
41 macro may look at this. */ | 38 macro may look at this. */ |
42 volatile int quit_check_signal_happened; | 39 volatile int quit_check_signal_happened; |
178 Do NOT set alarm_happened, because we don't want anyone | 175 Do NOT set alarm_happened, because we don't want anyone |
179 looking at the timeout queue. We didn't set it and | 176 looking at the timeout queue. We didn't set it and |
180 it needs to stay the way it is. */ | 177 it needs to stay the way it is. */ |
181 quit_check_signal_happened = 1; | 178 quit_check_signal_happened = 1; |
182 | 179 |
183 #ifdef WINDOWSNT | 180 #ifdef WIN32_NATIVE |
184 can_break_system_calls = 0; | 181 can_break_system_calls = 0; |
185 #else | 182 #else |
186 /* can_break_system_calls is set when we want to break out of | 183 /* can_break_system_calls is set when we want to break out of |
187 non-interruptible system calls. */ | 184 non-interruptible system calls. */ |
188 if (can_break_system_calls) | 185 if (can_break_system_calls) |
418 to the original shell, ever. */ | 415 to the original shell, ever. */ |
419 stdout_out ("No support for stopping a process on this operating system;\n"); | 416 stdout_out ("No support for stopping a process on this operating system;\n"); |
420 stdout_out ("you can continue or abort.\n"); | 417 stdout_out ("you can continue or abort.\n"); |
421 #endif /* not SIGTSTP */ | 418 #endif /* not SIGTSTP */ |
422 stdout_out ("Auto-save? (y or n) "); | 419 stdout_out ("Auto-save? (y or n) "); |
423 fflush (stdout); | |
424 if (((c = getc (stdin)) & ~040) == 'Y') | 420 if (((c = getc (stdin)) & ~040) == 'Y') |
425 Fdo_auto_save (Qnil, Qnil); | 421 Fdo_auto_save (Qnil, Qnil); |
426 while (c != '\n') | 422 while (c != '\n') |
427 c = getc (stdin); | 423 c = getc (stdin); |
428 stdout_out ("Abort (and dump core)? (y or n) "); | 424 stdout_out ("Abort (and dump core)? (y or n) "); |
429 fflush (stdout); | |
430 if (((c = getc (stdin)) & ~040) == 'Y') | 425 if (((c = getc (stdin)) & ~040) == 'Y') |
431 abort (); | 426 abort (); |
432 while (c != '\n') | 427 while (c != '\n') |
433 c = getc (stdin); | 428 c = getc (stdin); |
434 stdout_out ("Continuing...\n"); | 429 stdout_out ("Continuing...\n"); |
435 fflush (stdout); | |
436 reinit_initial_console (); | 430 reinit_initial_console (); |
437 MARK_FRAME_CHANGED (XFRAME (DEVICE_SELECTED_FRAME | 431 MARK_FRAME_CHANGED (XFRAME (DEVICE_SELECTED_FRAME |
438 (XDEVICE (CONSOLE_SELECTED_DEVICE | 432 (XDEVICE (CONSOLE_SELECTED_DEVICE |
439 (XCONSOLE | 433 (XCONSOLE |
440 (Vcontrolling_terminal)))))); | 434 (Vcontrolling_terminal)))))); |