diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2024-06-11 00:40:22 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2024-06-11 00:40:22 +0000 |
commit | 9900371311a536a9da44c7dc00a2c6cc24fcd9ec (patch) | |
tree | 60cecc5dbdb36112d56e13894be9d9fcabd3268f | |
parent | e5bb1b9ac5e3a752c8841be9805cabb3c4725873 (diff) |
log waitpid() status for abnormal exits
-rw-r--r-- | usr.bin/ssh/monitor_wrap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/monitor_wrap.c b/usr.bin/ssh/monitor_wrap.c index ae254bc2674..9581c3e3d00 100644 --- a/usr.bin/ssh/monitor_wrap.c +++ b/usr.bin/ssh/monitor_wrap.c @@ -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> @@ -160,7 +160,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); } } |