Commit 5c03767e authored by Richard M. Stallman's avatar Richard M. Stallman

(Fcall_process): Clear synch_process_death and

synch_process_retcode before the vfork.
parent 4fd99ee4
......@@ -249,6 +249,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
/* Record that we're about to create a synchronous process. */
synch_process_alive = 1;
/* These vars record information from process termination.
Clear them now before process can possibly terminate,
to avoid timing error if process terminates soon. */
synch_process_death = 0;
synch_process_retcode = 0;
pid = vfork ();
if (pid == 0)
......@@ -293,9 +299,6 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
return Qnil;
}
synch_process_death = 0;
synch_process_retcode = 0;
record_unwind_protect (call_process_cleanup,
Fcons (make_number (fd[0]), make_number (pid)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment