Commit 9cdde1e2 authored by Paul Eggert's avatar Paul Eggert

* sysdep.c (get_child_status): Abort on internal error (Bug#13086).

This will cause a production Emacs to dump core instead of
infinite-looping.
parent 2e4ad7e5
2012-12-07 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (get_child_status): Abort on internal error (Bug#13086).
This will cause a production Emacs to dump core instead of
infinite-looping.
2012-12-07 Dmitry Antipov <dmantipov@yandex.ru>
* frame.c (make_frame): Do not set window's buffer to t.
......
......@@ -289,9 +289,12 @@ get_child_status (pid_t child, int *status, int options, bool interruptible)
while ((pid = waitpid (child, status, options)) < 0)
{
/* CHILD must be a child process that has not been reaped, and
STATUS and OPTIONS must be valid. */
eassert (errno == EINTR);
/* Check that CHILD is a child process that has not been reaped,
and that STATUS and OPTIONS are valid. Otherwise abort,
as continuing after this internal error could cause Emacs to
become confused and kill innocent-victim processes. */
if (errno != EINTR)
emacs_abort ();
/* Note: the MS-Windows emulation of waitpid calls QUIT
internally. */
......
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