[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105448: Avoid crash with invalid def
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105448: Avoid crash with invalid default-process-coding-system. |
Date: |
Sun, 14 Aug 2011 13:51:08 -0400 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105448
author: Kenichi Handa <address@hidden>
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Sun 2011-08-14 13:51:08 -0400
message:
Avoid crash with invalid default-process-coding-system.
* src/process.c (create_process): Call setup_process_coding_systems
after the pid of the process is set to -1.
modified:
src/ChangeLog
src/process.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-08-14 11:10:19 +0000
+++ b/src/ChangeLog 2011-08-14 17:51:08 +0000
@@ -1,3 +1,8 @@
+2011-08-14 Kenichi Handa <address@hidden>
+
+ * process.c (create_process): Call setup_process_coding_systems
+ after the pid of the process is set to -1.
+
2011-08-14 Eli Zaretskii <address@hidden>
* xdisp.c (move_it_in_display_line_to): Don't invoke
=== modified file 'src/process.c'
--- a/src/process.c 2011-08-14 05:23:51 +0000
+++ b/src/process.c 2011-08-14 17:51:08 +0000
@@ -1643,7 +1643,6 @@
XPROCESS (process)->pty_flag = pty_flag;
XPROCESS (process)->status = Qrun;
- setup_process_coding_systems (process);
/* Delay interrupts until we have a chance to store
the new fork's pid in its process structure */
@@ -1678,6 +1677,10 @@
processes to get their return values scrambled. */
XPROCESS (process)->pid = -1;
+ /* This must be called after the above line because it may signal an
+ error. */
+ setup_process_coding_systems (process);
+
BLOCK_INPUT;
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105448: Avoid crash with invalid default-process-coding-system.,
Chong Yidong <=