Mercurial > emacs
comparison src/sysdep.c @ 5964:1b850ec1a5e2
(init_sys_modes, reset_sys_modes): Test BSD_PGRPS.
(narrow_foreground_group, widen_foreground_group): Define if BSD_PGRPS.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 17 Feb 1994 02:59:48 +0000 |
parents | ce4b18e394a2 |
children | ac268a6d91d6 |
comparison
equal
deleted
inserted
replaced
5963:468b56386da3 | 5964:1b850ec1a5e2 |
---|---|
832 #endif /* FASYNC */ | 832 #endif /* FASYNC */ |
833 #endif /* F_SETFL */ | 833 #endif /* F_SETFL */ |
834 | 834 |
835 /* Saving and restoring the process group of Emacs's terminal. */ | 835 /* Saving and restoring the process group of Emacs's terminal. */ |
836 | 836 |
837 #ifdef BSD | 837 #ifdef BSD_PGRPS |
838 | 838 |
839 /* The process group of which Emacs was a member when it initially | 839 /* The process group of which Emacs was a member when it initially |
840 started. | 840 started. |
841 | 841 |
842 If Emacs was in its own process group (i.e. inherited_pgroup == | 842 If Emacs was in its own process group (i.e. inherited_pgroup == |
876 if (inherited_pgroup != getpid ()) | 876 if (inherited_pgroup != getpid ()) |
877 EMACS_SET_TTY_PGRP (input_fd, &inherited_pgroup); | 877 EMACS_SET_TTY_PGRP (input_fd, &inherited_pgroup); |
878 setpgrp (0, inherited_pgroup); | 878 setpgrp (0, inherited_pgroup); |
879 } | 879 } |
880 | 880 |
881 #endif | 881 #endif /* BSD_PGRPS */ |
882 | 882 |
883 /* Getting and setting emacs_tty structures. */ | 883 /* Getting and setting emacs_tty structures. */ |
884 | 884 |
885 /* Set *TC to the parameters associated with the terminal FD. | 885 /* Set *TC to the parameters associated with the terminal FD. |
886 Return zero if all's well, or -1 if we ran into an error we | 886 Return zero if all's well, or -1 if we ran into an error we |
1109 #ifndef VMS4_4 | 1109 #ifndef VMS4_4 |
1110 sys_access_reinit (); | 1110 sys_access_reinit (); |
1111 #endif | 1111 #endif |
1112 #endif /* not VMS */ | 1112 #endif /* not VMS */ |
1113 | 1113 |
1114 #ifdef BSD | 1114 #ifdef BSD_PGRPS |
1115 if (! read_socket_hook && EQ (Vwindow_system, Qnil)) | 1115 if (! read_socket_hook && EQ (Vwindow_system, Qnil)) |
1116 narrow_foreground_group (); | 1116 narrow_foreground_group (); |
1117 #endif | 1117 #endif |
1118 | 1118 |
1119 EMACS_GET_TTY (input_fd, &old_tty); | 1119 EMACS_GET_TTY (input_fd, &old_tty); |
1481 | 1481 |
1482 #ifdef AIX | 1482 #ifdef AIX |
1483 hft_reset (); | 1483 hft_reset (); |
1484 #endif | 1484 #endif |
1485 | 1485 |
1486 #ifdef BSD | 1486 #ifdef BSD_PGRPS |
1487 widen_foreground_group (); | 1487 widen_foreground_group (); |
1488 #endif | 1488 #endif |
1489 } | 1489 } |
1490 | 1490 |
1491 #ifdef HAVE_PTYS | 1491 #ifdef HAVE_PTYS |