emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r105330: * callproc.c (Fcall_process)


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105330: * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
Date: Wed, 27 Jul 2011 18:46:23 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105330
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Wed 2011-07-27 18:46:23 -0700
message:
  * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
modified:
  src/ChangeLog
  src/callproc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-07-28 00:15:43 +0000
+++ b/src/ChangeLog     2011-07-28 01:46:23 +0000
@@ -1,5 +1,9 @@
 2011-07-28  Paul Eggert  <address@hidden>
 
+       * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
+
+2011-07-28  Paul Eggert  <address@hidden>
+
        Integer signedness and overflow and related fixes.  (Bug#9079)
 
        * bidi.c: Integer size and overflow fixes.

=== modified file 'src/callproc.c'
--- a/src/callproc.c    2011-07-06 18:04:23 +0000
+++ b/src/callproc.c    2011-07-28 01:46:23 +0000
@@ -603,6 +603,7 @@
 
     /* vfork, and prevent local vars from being clobbered by the vfork.  */
     {
+      int volatile fd1_volatile = fd1;
       int volatile fd_error_volatile = fd_error;
       int volatile fd_output_volatile = fd_output;
       int volatile output_to_buffer_volatile = output_to_buffer;
@@ -610,6 +611,7 @@
 
       pid = vfork ();
 
+      fd1 = fd1_volatile;
       fd_error = fd_error_volatile;
       fd_output = fd_output_volatile;
       output_to_buffer = output_to_buffer_volatile;


reply via email to

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