diff options
| author | Paul Eggert | 2013-07-09 00:04:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-09 00:04:48 -0700 |
| commit | 4ebbdd6712c1966406b40d2673464949775cbd7a (patch) | |
| tree | 08667dd241629ca55c2c30ce19777bd7ec107cfa /m4 | |
| parent | 584ee3fc72260acb3cc83f4d1a047b733a08ca17 (diff) | |
| download | emacs-4ebbdd6712c1966406b40d2673464949775cbd7a.tar.gz emacs-4ebbdd6712c1966406b40d2673464949775cbd7a.zip | |
Handle errno and exit status a bit more carefully.
* lib/ignore-value.h: Remove this gnulib-imported file.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Remove ignore-value.
* src/callproc.c (child_setup) [!DOS_NT]: Don't try to stuff an error
number into an exit status. Instead, use EXIT_CANCELED.
(child_setup) [!MSDOS]: Avoid possible deadlock with vfork.
* src/callproc.c (relocate_fd):
* src/emacs.c (close_output_streams, main):
* src/process.c (create_process):
* src/sysdep.c (sys_subshell) [!DOS_NT || !WINDOWSNT]:
Use emacs_perror for simplicity.
* src/callproc.c (relocate_fd, main):
* src/sysdep.c (sys_subshell):
Exit with EXIT_CANCELED etc., not 1, when exec setup fails.
(shut_down_emacs): Use emacs_write, not write.
* src/emacs.c, src/sysdep.c: Don't include <ignore-value.h>.
* src/fileio.c (Fcopy_file, e_write):
* src/nsterm.m (ns_select):
* src/process.c (send_process):
* src/sound.c (vox_write):
Use emacs_write_sig, not emacs_write.
* src/lisp.h (emacs_write_sig, emacs_perror): New decls.
* src/process.h (EXIT_CANCELED), EXIT_CANNOT_INVOKE, EXIT_ENOENT):
New constants.
* src/sysdep.c (emacs_backtrace): Use emacs_write, not ignore_value
of write.
(emacs_full_write): New function.
(emacs_write): Rewrite to use it.
(emacswrite_sig, emacs_perror): New functions.
* src/xrdb.c (fatal): Don't invoke perror, since errno might be garbage.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/gnulib-comp.m4 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index e813692aeaf..a909927f319 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -80,7 +80,6 @@ AC_DEFUN([gl_EARLY], | |||
| 80 | # Code from module gettime: | 80 | # Code from module gettime: |
| 81 | # Code from module gettimeofday: | 81 | # Code from module gettimeofday: |
| 82 | # Code from module group-member: | 82 | # Code from module group-member: |
| 83 | # Code from module ignore-value: | ||
| 84 | # Code from module include_next: | 83 | # Code from module include_next: |
| 85 | # Code from module intprops: | 84 | # Code from module intprops: |
| 86 | # Code from module inttypes-incomplete: | 85 | # Code from module inttypes-incomplete: |
| @@ -798,7 +797,6 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 798 | lib/gettime.c | 797 | lib/gettime.c |
| 799 | lib/gettimeofday.c | 798 | lib/gettimeofday.c |
| 800 | lib/group-member.c | 799 | lib/group-member.c |
| 801 | lib/ignore-value.h | ||
| 802 | lib/intprops.h | 800 | lib/intprops.h |
| 803 | lib/inttypes.in.h | 801 | lib/inttypes.in.h |
| 804 | lib/lstat.c | 802 | lib/lstat.c |