+2008-06-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/wait-process.c (wait_subprocess): Add an assertion.
+
2008-06-10 Bruno Haible <bruno@clisp.org>
* lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
/* Waiting for a subprocess to finish.
- Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
}
/* One of WIFSIGNALED (status), WIFEXITED (status), WIFSTOPPED (status)
- must always be true. Loop until the program terminates. */
+ must always be true, since we did not specify WCONTINUED in the
+ waitpid() call. Loop until the program terminates. */
if (!WIFSTOPPED (status))
break;
}
progname, (int) WTERMSIG (status));
return 127;
}
+ if (!WIFEXITED (status))
+ abort ();
if (WEXITSTATUS (status) == 127)
{
if (exit_on_error || !null_stderr)