aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog134
1 files changed, 134 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a6fabdccdea..1a91eb0f1a3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,137 @@
12012-12-03 Paul Eggert <eggert@cs.ucla.edu>
2
3 Don't let call-process be a zombie factory (Bug#12980).
4 Fixing this bug required some cleanup of the signal-handling code.
5 As a side effect, this change also fixes a longstanding rare race
6 condition whereby Emacs could mistakenly kill unrelated processes,
7 and it fixes a bug where a second C-g does not kill a recalcitrant
8 synchronous process in GNU/Linux and similar platforms.
9 The patch should also fix the last vestiges of Bug#9488,
10 a bug which has mostly been fixed on the trunk by other changes.
11 * callproc.c, process.h (synch_process_alive, synch_process_death)
12 (synch_process_termsig, sync_process_retcode):
13 Remove. All uses removed, to simplify analysis and so that
14 less consing is done inside critical sections.
15 * callproc.c (call_process_exited): Remove. All uses replaced
16 with !synch_process_pid.
17 * callproc.c (synch_process_pid, synch_process_fd): New static vars.
18 These take the role of what used to be in unwind-protect arg.
19 All uses changed.
20 (block_child_signal, unblock_child_signal):
21 New functions, to avoid races that could kill innocent-victim processes.
22 (call_process_kill, call_process_cleanup, Fcall_process): Use them.
23 (call_process_kill): Record killed processes as deleted, so that
24 zombies do not clutter up the system. Do this inside a critical
25 section, to avoid a race that would allow the clutter.
26 (call_process_cleanup): Fix code so that the second C-g works again
27 on common platforms such as GNU/Linux.
28 (Fcall_process): Create the child process in a critical section,
29 to fix a race condition. If creating an asynchronous process,
30 record it as deleted so that zombies do not clutter up the system.
31 Do unwind-protect for WINDOWSNT too, as that's simpler in the
32 light of these changes. Omit unnecessary call to emacs_close
33 before failure, as the unwind-protect code does that.
34 * callproc.c (call_process_cleanup):
35 * w32proc.c (waitpid): Simplify now that synch_process_alive is gone.
36 * process.c (record_deleted_pid): New function, containing
37 code refactored out of Fdelete_process.
38 (Fdelete_process): Use it.
39 (process_status_retrieved): Remove. All callers changed to use
40 child_status_change.
41 (record_child_status_change): Remove, folding its contents into ...
42 (handle_child_signal): ... this signal handler. Now, this
43 function is purely a handler for SIGCHLD, and is not called after
44 a synchronous waitpid returns; the synchronous code is moved to
45 wait_for_termination. There is no need to worry about reaping
46 more than one child now.
47 * sysdep.c (get_child_status, child_status_changed): New functions.
48 (wait_for_termination): Now takes int * status and bool
49 interruptible arguments, too. Do not record child status change;
50 that's now the caller's responsibility. All callers changed.
51 Reimplement in terms of get_child_status.
52 (wait_for_termination_1, interruptible_wait_for_termination):
53 Remove. All callers changed to use wait_for_termination.
54 * syswait.h: Include <stdbool.h>, for bool.
55 (record_child_status_change, interruptible_wait_for_termination):
56 Remove decls.
57 (record_deleted_pid, child_status_changed): New decls.
58 (wait_for_termination): Adjust to API changes noted above.
59
60 * bytecode.c, lisp.h (Qbytecode): Remove.
61 No longer needed after 2012-11-20 interactive-p changes.
62
632012-12-03 Eli Zaretskii <eliz@gnu.org>
64
65 * xdisp.c (redisplay_window): If the cursor is visible, but inside
66 the scroll margin, move point outside the margin. (Bug#13055)
67
682012-12-03 Jan Djärv <jan.h.d@swipnet.se>
69
70 * gtkutil.c (my_log_handler): New function.
71 (xg_set_geometry): Set log handler to my_log_handler (Bug#11177).
72
732012-12-03 Dmitry Antipov <dmantipov@yandex.ru>
74
75 * lisp.h (modify_region): Rename to...
76 (modify_region_1): ...new prototype.
77 * textprop.c (modify_region): Now static. Adjust users.
78 * insdel.c (modify_region): Rename to...
79 (modify_region_1): ...new function to work with current buffer.
80 Adjust comment and users. Use true and false for booleans.
81
822012-12-03 Dmitry Antipov <dmantipov@yandex.ru>
83
84 * alloc.c (free_save_value): New function.
85 (safe_alloca_unwind): Use it.
86 * lisp.h (free_save_value): New prototype.
87 * editfns.c (save_excursion_save): Use Lisp_Misc_Save_Value.
88 Add comment.
89 (save_excursion_restore): Adjust to match saved data structure.
90 Use free_save_value to offload some work from GC. Drop obsolete
91 #if 0 code.
92
932012-12-03 Chong Yidong <cyd@gnu.org>
94
95 * fileio.c (Vauto_save_list_file_name): Doc fix.
96
972012-12-03 Fabrice Popineau <fabrice.popineau@gmail.com>
98
99 * w32fns.c: Remove prototype of atof.
100 (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
101 builds.
102 (file_dialog_callback): Declared UINT_PTR.
103
104 * w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
105 with 64-bit builds.
106
107 * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
108 (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
109 defined.
110
1112012-12-03 Glenn Morris <rgm@gnu.org>
112
113 * data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding.
114
1152012-12-02 Paul Eggert <eggert@cs.ucla.edu>
116
117 Fix xpalloc confusion after memory is exhausted.
118 * alloc.c (xpalloc): Comment fix.
119 * charset.c (Fdefine_charset_internal): If xpalloc exhausts memory
120 and signals an error, do not clear charset_table_size, as
121 charset_table is still valid.
122 * doprnt.c (evxprintf): Clear *BUF after freeing it.
123
124 Use execve to avoid need to munge environ (Bug#13054).
125 * callproc.c (Fcall_process):
126 * process.c (create_process):
127 Don't save and restore environ; no longer needed.
128 * callproc.c (child_setup):
129 Use execve, not execvp, to preserve environ.
130
1312012-12-01 Paul Eggert <eggert@cs.ucla.edu>
132
133 * xterm.c (x_draw_image_relief): Remove unused locals (Bug#10500).
134
12012-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 1352012-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 136
3 * xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief 137 * xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief