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 /src/ChangeLog | |
| 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 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 29efd9f181c..6c515271594 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,25 @@ | |||
| 1 | 2012-11-05 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-11-05 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Assume at least POSIX.1-1988 for getpgrp, setpgid, setsid (Bug#12800). | ||
| 4 | This removes code that has been obsolete since around 1990. | ||
| 5 | * callproc.c (Fcall_process): | ||
| 6 | * emacs.c (main): | ||
| 7 | * process.c (create_process): | ||
| 8 | * term.c (dissociate_if_controlling_tty): | ||
| 9 | Assume setsid exists. | ||
| 10 | * callproc.c (child_setup): Assume setpgid exists and behaves as | ||
| 11 | per POSIX.1-1988 or later. | ||
| 12 | * conf_post.h (setpgid) [!HAVE_SETPGID]: Remove. | ||
| 13 | * emacs.c (shut_down_emacs): | ||
| 14 | * sysdep.c (sys_suspend, init_foreground_group): | ||
| 15 | Assume getpgrp behaves as per POSIX.1-1998 or later. | ||
| 16 | * msdos.c (setpgrp): Remove. | ||
| 17 | (tcgetpgrp, setpgid, setsid): New functions. | ||
| 18 | * systty.h (EMACS_GETPGRP): Remove. All callers now use getpgrp. | ||
| 19 | * term.c (no_controlling_tty): Remove; unused. | ||
| 20 | * w32proc.c (setpgrp): Remove. | ||
| 21 | (setsid, tcgetpgrp): New functions. | ||
| 22 | |||
| 3 | Simplify by assuming __fpending. | 23 | Simplify by assuming __fpending. |
| 4 | * dispnew.c: Include <fpending.h>, not <stdio_ext.h>. | 24 | * dispnew.c: Include <fpending.h>, not <stdio_ext.h>. |
| 5 | (update_frame_1): Use __fpending, not PENDING_OUTPUT_COUNT. | 25 | (update_frame_1): Use __fpending, not PENDING_OUTPUT_COUNT. |