emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106628: * src/process.c (start_proce


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106628: * src/process.c (start_process_unwind): Treat any pid <= 0, except -2,
Date: Tue, 06 Dec 2011 00:17:35 -0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106628
fixes bug(s): http://debbugs.gnu.org/10217
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2011-12-06 00:17:35 -0800
message:
  * src/process.c (start_process_unwind): Treat any pid <= 0, except -2,
  as an error, not just -1.
  For example, make_process inits the pid to 0.
modified:
  src/ChangeLog
  src/process.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-12-05 15:21:48 +0000
+++ b/src/ChangeLog     2011-12-06 08:17:35 +0000
@@ -1,3 +1,8 @@
+2011-12-06  Glenn Morris  <address@hidden>
+
+       * process.c (start_process_unwind): Treat any pid <= 0, except -2,
+       as an error, not just -1.  (Bug#10217)
+
 2011-12-05  Chong Yidong  <address@hidden>
 
        * keyboard.c (process_special_events): New function.

=== modified file 'src/process.c'
--- a/src/process.c     2011-11-28 08:20:58 +0000
+++ b/src/process.c     2011-12-06 08:17:35 +0000
@@ -1521,8 +1521,9 @@
   if (!PROCESSP (proc))
     abort ();
 
-  /* Was PROC started successfully?  */
-  if (XPROCESS (proc)->pid == -1)
+  /* Was PROC started successfully?
+     -2 is used for a pty with no process, eg for gdb.  */
+  if (XPROCESS (proc)->pid <= 0 && XPROCESS (proc)->pid != -2)
     remove_process (proc);
 
   return Qnil;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]