Remove a pointless check for WCOREDUMPED.
WCOREDUMPED can only be used if the process was killed. * src/process.c (status_convert): Don't check WCOREDUMPED if WIFEXITED.
This commit is contained in:
parent
7a89b4b5d3
commit
302e6d4623
1 changed files with 1 additions and 2 deletions
|
@ -692,8 +692,7 @@ status_convert (int w)
|
|||
if (WIFSTOPPED (w))
|
||||
return Fcons (Qstop, Fcons (make_fixnum (WSTOPSIG (w)), Qnil));
|
||||
else if (WIFEXITED (w))
|
||||
return Fcons (Qexit, Fcons (make_fixnum (WEXITSTATUS (w)),
|
||||
WCOREDUMP (w) ? Qt : Qnil));
|
||||
return Fcons (Qexit, Fcons (make_fixnum (WEXITSTATUS (w)), Qnil));
|
||||
else if (WIFSIGNALED (w))
|
||||
return Fcons (Qsignal, Fcons (make_fixnum (WTERMSIG (w)),
|
||||
WCOREDUMP (w) ? Qt : Qnil));
|
||||
|
|
Loading…
Add table
Reference in a new issue