Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5266b4bb
Commit
5266b4bb
authored
Jul 27, 2011
by
Paul Eggert
Browse files
* callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
parent
044c22e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/callproc.c
src/callproc.c
+2
-0
No files found.
src/ChangeLog
View file @
5266b4bb
2011-07-28 Paul Eggert <eggert@cs.ucla.edu>
* callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
2011-07-28 Paul Eggert <eggert@cs.ucla.edu>
Integer signedness and overflow and related fixes. (Bug#9079)
...
...
src/callproc.c
View file @
5266b4bb
...
...
@@ -603,6 +603,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
/* 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 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
pid
=
vfork
();
fd1
=
fd1_volatile
;
fd_error
=
fd_error_volatile
;
fd_output
=
fd_output_volatile
;
output_to_buffer
=
output_to_buffer_volatile
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment