mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Change the return status of do_system_command to be -1
if a signal is received. This fixes a bug where killing the process would cause a "No manual entry for XXX" to be printed even if the manpage was found.
This commit is contained in:
parent
b76cc0f831
commit
0d09ae1111
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6967
@ -139,7 +139,7 @@ do_system_command (command)
|
||||
status = system (command);
|
||||
|
||||
if (WIFSIGNALED(status))
|
||||
return 0;
|
||||
return -1;
|
||||
else if (WEXITSTATUS(status)) {
|
||||
gripe_system_command (status);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user