diff options
| author | Paul Eggert | 2012-11-04 19:18:32 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-11-04 19:18:32 -0800 |
| commit | dd0333b6155c9c3aabdac9418c005e2e5b4796e7 (patch) | |
| tree | 6239cffc67b6a7b0e8eb594c22ed92a4cd28b2fc /admin/CPP-DEFINES | |
| parent | 8148369cfba2c982a87fb4eb72d024e26e193a03 (diff) | |
| download | emacs-dd0333b6155c9c3aabdac9418c005e2e5b4796e7.tar.gz emacs-dd0333b6155c9c3aabdac9418c005e2e5b4796e7.zip | |
Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid.
This removes code that has been obsolete since around 1990.
* admin/CPP-DEFINES (HAVE_SETPGID, HAVE_SETSID, SETPGRP_RELEASES_CTTY):
Remove; obsolete.
* configure.ac (setpgid, setsid): Assume their existence.
(AC_FUNC_GETPGRP, SETPGRP_RELEASES_CTTY): Remove; obsolete.
* src/callproc.c (Fcall_process):
* src/emacs.c (main):
* src/process.c (create_process):
* src/term.c (dissociate_if_controlling_tty):
Assume setsid exists.
* src/callproc.c (child_setup): Assume setpgid exists and behaves as
per POSIX.1-1988 or later.
* src/conf_post.h (setpgid) [!HAVE_SETPGID]: Remove.
* src/emacs.c (shut_down_emacs):
* src/sysdep.c (sys_suspend, init_foreground_group):
Assume getpgrp behaves as per POSIX.1-1998 or later.
* src/msdos.c (setpgrp): Remove.
(tcgetpgrp, setpgid, setsid): New functions.
* src/systty.h (EMACS_GETPGRP): Remove. All callers now use getpgrp.
* src/term.c (no_controlling_tty): Remove; unused.
* src/w32proc.c (setpgrp): Remove.
(setsid, tcgetpgrp): New functions.
Fixes: debbugs:12800
Diffstat (limited to 'admin/CPP-DEFINES')
| -rw-r--r-- | admin/CPP-DEFINES | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index fb217fc22e6..0a4c14cb95c 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -298,9 +298,7 @@ HAVE_SENDTO | |||
| 298 | HAVE_SEQPACKET | 298 | HAVE_SEQPACKET |
| 299 | HAVE_SETITIMER | 299 | HAVE_SETITIMER |
| 300 | HAVE_SETLOCALE | 300 | HAVE_SETLOCALE |
| 301 | HAVE_SETPGID | ||
| 302 | HAVE_SETRLIMIT | 301 | HAVE_SETRLIMIT |
| 303 | HAVE_SETSID | ||
| 304 | HAVE_SHARED_GAME_DIR | 302 | HAVE_SHARED_GAME_DIR |
| 305 | HAVE_SHUTDOWN | 303 | HAVE_SHUTDOWN |
| 306 | HAVE_SIGNED_${GLTYPE} | 304 | HAVE_SIGNED_${GLTYPE} |
| @@ -432,7 +430,6 @@ PTY_OPEN | |||
| 432 | PTY_TTY_NAME_SPRINTF | 430 | PTY_TTY_NAME_SPRINTF |
| 433 | PURESIZE | 431 | PURESIZE |
| 434 | RUN_TIME_REMAP | 432 | RUN_TIME_REMAP |
| 435 | SETPGRP_RELEASES_CTTY | ||
| 436 | SETUP_SLAVE_PTY | 433 | SETUP_SLAVE_PTY |
| 437 | SIGALRM | 434 | SIGALRM |
| 438 | SIGCHLD | 435 | SIGCHLD |