diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 069d39ce6be..07285d564b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,41 @@ | |||
| 1 | 2013-07-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Make file descriptors close-on-exec when possible (Bug#14803). | ||
| 4 | This simplifies Emacs a bit, since it no longer needs to worry | ||
| 5 | about closing file descriptors by hand in some cases. | ||
| 6 | It also fixes some unlikely races. Not all such races, as | ||
| 7 | libraries often open files internally without setting | ||
| 8 | close-on-exec, but it's an improvement. | ||
| 9 | * alloc.c (valid_pointer_p) [!WINDOWSNT]: | ||
| 10 | * callproc.c (Fcall_process) [!MSDOS]: | ||
| 11 | * emacs.c (main) [!DOS_NT]: | ||
| 12 | * nsterm.m (ns_term_init): | ||
| 13 | * process.c (create_process): | ||
| 14 | Use 'pipe2' with O_CLOEXEC instead of 'pipe'. | ||
| 15 | * emacs.c (Fcall_process_region) [HAVE_MKOSTEMP]: | ||
| 16 | * filelock.c (create_lock_file) [HAVE_MKOSTEMP]: | ||
| 17 | Prefer mkostemp with O_CLOEXEC to mkstemp. | ||
| 18 | * callproc.c (relocate_fd) [!WINDOWSNT]: | ||
| 19 | * emacs.c (main): Use F_DUPFD_CLOEXEC, not plain F_DUPFD. | ||
| 20 | No need to use fcntl (..., F_SETFD, FD_CLOEXEC), since we're | ||
| 21 | now using pipe2. | ||
| 22 | * filelock.c (create_lock_file) [! HAVE_MKOSTEMP]: | ||
| 23 | Make the resulting file descriptor close-on-exec. | ||
| 24 | * lisp.h, lread.c, process.c (close_load_descs, close_process_descs): | ||
| 25 | * lread.c (load_descriptor_list, load_descriptor_unwind): | ||
| 26 | Remove; no longer needed. All uses removed. | ||
| 27 | * process.c (SOCK_CLOEXEC): Define to 0 if not supplied by system. | ||
| 28 | (close_on_exec, accept4, process_socket) [!SOCK_CLOEXEC]: | ||
| 29 | New functions. | ||
| 30 | (socket) [!SOCK_CLOEXEC]: Supply a substitute. | ||
| 31 | (Fmake_network_process, Fnetwork_interface_list): | ||
| 32 | (Fnetwork_interface_info, server_accept_connection): | ||
| 33 | Make newly-created socket close-on-exec. | ||
| 34 | * sysdep.c (emacs_open, emacs_fopen): | ||
| 35 | Make new-created descriptor close-on-exec. | ||
| 36 | * w32.c (fcntl): Support F_DUPFD_CLOEXEC well enough for Emacs. | ||
| 37 | * w32.c, w32.h (pipe2): Rename from 'pipe', with new flags arg. | ||
| 38 | |||
| 1 | 2013-07-07 Jan Djärv <jan.h.d@swipnet.se> | 39 | 2013-07-07 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 40 | ||
| 3 | * nsterm.m (sendEvent:): Propagate keyboard events to modal windows | 41 | * nsterm.m (sendEvent:): Propagate keyboard events to modal windows |