Mercurial > emacs
comparison src/sysdep.c @ 3472:6f05f6e83e94
(wait_for_termination): Fix sigpause in POSIX_SIGNALS case.
(init_sys_modes): Disable VLNEXT char.
Also VWERASE, VREPRINT, VDISCARD.
(sys_suspend): Handle GETPGRP_NO_ARG.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 04 Jun 1993 05:22:19 +0000 |
parents | 7900edb84c4f |
children | a9b886b3f976 |
comparison
equal
deleted
inserted
replaced
3471:0b6fc4c47891 | 3472:6f05f6e83e94 |
---|---|
344 if (0 > kill (pid, 0)) | 344 if (0 > kill (pid, 0)) |
345 { | 345 { |
346 sigunblock (sigmask (SIGCHLD)); | 346 sigunblock (sigmask (SIGCHLD)); |
347 break; | 347 break; |
348 } | 348 } |
349 sigpause (sigmask (SIGCHLD)); | 349 sigpause (SIGEMPTYMASK); |
350 #else /* not POSIX_SIGNALS */ | 350 #else /* not POSIX_SIGNALS */ |
351 #ifdef HAVE_SYSV_SIGPAUSE | 351 #ifdef HAVE_SYSV_SIGPAUSE |
352 sighold (SIGCHLD); | 352 sighold (SIGCHLD); |
353 if (0 > kill (pid, 0)) | 353 if (0 > kill (pid, 0)) |
354 { | 354 { |
565 } | 565 } |
566 return -1; | 566 return -1; |
567 #else | 567 #else |
568 #ifdef SIGTSTP | 568 #ifdef SIGTSTP |
569 | 569 |
570 #ifdef GETPGRP_NO_ARG | |
571 EMACS_KILLPG (getpgrp (), SIGTSTP); | |
572 #else | |
570 EMACS_KILLPG (getpgrp (0), SIGTSTP); | 573 EMACS_KILLPG (getpgrp (0), SIGTSTP); |
574 #endif | |
571 | 575 |
572 #else /* No SIGTSTP */ | 576 #else /* No SIGTSTP */ |
573 #ifdef USG_JOBCTRL /* If you don't know what this is don't mess with it */ | 577 #ifdef USG_JOBCTRL /* If you don't know what this is don't mess with it */ |
574 ptrace (0, 0, 0, 0); /* set for ptrace - caught by csh */ | 578 ptrace (0, 0, 0, 0); /* set for ptrace - caught by csh */ |
575 kill (getpid (), SIGQUIT); | 579 kill (getpid (), SIGQUIT); |
1029 tty.main.c_cc[V_DSUSP] = CDISABLE; /* Turn off mips handling of C-y. */ | 1033 tty.main.c_cc[V_DSUSP] = CDISABLE; /* Turn off mips handling of C-y. */ |
1030 #endif /* V_DSUSP */ | 1034 #endif /* V_DSUSP */ |
1031 #ifdef VDSUSP /* Some systems have VDSUSP, some have V_DSUSP. */ | 1035 #ifdef VDSUSP /* Some systems have VDSUSP, some have V_DSUSP. */ |
1032 tty.main.c_cc[VDSUSP] = CDISABLE; | 1036 tty.main.c_cc[VDSUSP] = CDISABLE; |
1033 #endif /* VDSUSP */ | 1037 #endif /* VDSUSP */ |
1038 #ifdef VLNEXT | |
1039 tty.main.c_cc[VLNEXT] = CDISABLE; | |
1040 #endif /* VLNEXT */ | |
1041 #ifdef VREPRINT | |
1042 tty.main.c_cc[VREPRINT] = CDISABLE; | |
1043 #endif /* VREPRINT */ | |
1044 #ifdef VWERASE | |
1045 tty.main.c_cc[VWERASE] = CDISABLE; | |
1046 #endif /* VWERASE */ | |
1047 #ifdef VDISCARD | |
1048 tty.main.c_cc[VDISCARD] = CDISABLE; | |
1049 #endif /* VDISCARD */ | |
1034 #endif /* mips or HAVE_TCATTR */ | 1050 #endif /* mips or HAVE_TCATTR */ |
1035 #ifdef AIX | 1051 #ifdef AIX |
1036 #ifndef IBMR2AIX | 1052 #ifndef IBMR2AIX |
1037 /* AIX enhanced edit loses NULs, so disable it */ | 1053 /* AIX enhanced edit loses NULs, so disable it */ |
1038 tty.main.c_line = 0; | 1054 tty.main.c_line = 0; |