]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove a pointless check for WCOREDUMPED.
authorPhilipp Stephani <phst@google.com>
Sun, 10 Jan 2021 08:50:15 +0000 (09:50 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 10 Jan 2021 08:50:15 +0000 (09:50 +0100)
WCOREDUMPED can only be used if the process was killed.

* src/process.c (status_convert): Don't check WCOREDUMPED if
WIFEXITED.

src/process.c

index 67e930e18f16fd3fc8662c6ac181b306008398c1..dac7d0440faf49fcc0aa0ae2ff9172a5d5db35c8 100644 (file)
@@ -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));