]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: log waitpid() status for abnormal exits
authordjm@openbsd.org <djm@openbsd.org>
Tue, 11 Jun 2024 00:40:21 +0000 (00:40 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 11 Jun 2024 01:26:50 +0000 (11:26 +1000)
OpenBSD-Commit-ID: b317930e06b51819c1a2bc6a4359764fecfb1c2d

monitor_wrap.c

index 9720bdb434c6f398e37b865fb913c3f475f8bb21..b0a5a5cfad46ccd9a22de2346c7537b8d03cd397 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor_wrap.c,v 1.131 2024/06/06 17:15:25 djm Exp $ */
+/* $OpenBSD: monitor_wrap.c,v 1.132 2024/06/11 00:40:21 djm Exp $ */
 /*
  * Copyright 2002 Niels Provos <provos@citi.umich.edu>
  * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -164,7 +164,8 @@ mm_reap(void)
                cleanup_exit(signal_is_crash(WTERMSIG(status)) ?
                    EXIT_CHILD_CRASH : 255);
        } else {
-               error_f("preauth child terminated abnormally");
+               error_f("preauth child terminated abnormally (status=0x%x)",
+                   status);
                cleanup_exit(EXIT_CHILD_CRASH);
        }
 }