diff options
author | Philipp Stephani <phst@google.com> | 2021-01-10 09:50:15 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2021-01-10 09:50:15 +0100 |
commit | 302e6d4623d6f87789c055717490799c1f2ec015 (patch) | |
tree | d7c5b370a8be22af13f84900d58118074c512bf7 /src/process.c | |
parent | 7a89b4b5d3bb44a1f43cc32c73cc85b63658c38b (diff) | |
download | emacs-302e6d4623d6f87789c055717490799c1f2ec015.tar.gz emacs-302e6d4623d6f87789c055717490799c1f2ec015.tar.bz2 emacs-302e6d4623d6f87789c055717490799c1f2ec015.zip |
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.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 67e930e18f1..dac7d0440fa 100644 --- a/src/process.c +++ b/src/process.c @@ -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)); |