diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2017-09-20 05:19:00 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-09-22 09:14:53 +1000 |
commit | 36945fa103176c00b39731e1fc1919a0d0808b81 (patch) | |
tree | d864fcee4a6422dea173a116181c70c645b194ed /mux.c | |
parent | 3e8d185af326bf183b6f78597d5e3d2eeb2dc40e (diff) |
upstream commit
Use strsignal in debug message instead of casting for the
benefit of portable where sig_atomic_t might not be int. "much nicer"
deraadt@
Upstream-ID: 2dac6c1e40511c700bd90664cd263ed2299dcf79
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.68 2017/09/18 12:03:24 dtucker Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.69 2017/09/20 05:19:00 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -2001,7 +2001,7 @@ mux_client_request_session(int fd) | |||
2001 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); | 2001 | leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE); |
2002 | 2002 | ||
2003 | if (muxclient_terminate) { | 2003 | if (muxclient_terminate) { |
2004 | debug2("Exiting on signal %ld", (long)muxclient_terminate); | 2004 | debug2("Exiting on signal: %s", strsignal(muxclient_terminate)); |
2005 | exitval = 255; | 2005 | exitval = 255; |
2006 | } else if (!exitval_seen) { | 2006 | } else if (!exitval_seen) { |
2007 | debug2("Control master terminated unexpectedly"); | 2007 | debug2("Control master terminated unexpectedly"); |