From: Philipp Stephani Date: Sun, 10 Jan 2021 08:50:15 +0000 (+0100) Subject: Remove a pointless check for WCOREDUMPED. X-Git-Tag: emacs-28.0.90~4328 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=302e6d4623d6f87789c055717490799c1f2ec015;p=emacs.git 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. --- 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));