execute: Treat signalled processes like wait-process does.
commit438234c7409a58f091e314a2eecaef156efbc6ac
authorBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 18:04:57 +0000 (24 19:04 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 18:04:57 +0000 (24 19:04 +0100)
tree3330f5f4e98b881334ee5a8acddc491b15a6ffba
parentad6d18b5699f75d9fb356b1ef6ea0ed4c50e0216
execute: Treat signalled processes like wait-process does.

* lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
(execute): Recognize the case where the exit code indicates a signalled
child process.
* tests/test-execute-main.c (main): Update expected test result.
* modules/execute (Depends-on): Add sys_wait.
ChangeLog
lib/execute.c
modules/execute
tests/test-execute-main.c