summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 480a1635a..23c566050 100644
--- a/session.c
+++ b/session.c
@@ -1473,7 +1473,11 @@ session_exit_message(Session *s, int status)
1473 channel_request_start(s->chanid, 1473 channel_request_start(s->chanid,
1474 "exit-signal", 0); 1474 "exit-signal", 0);
1475 packet_put_int(WTERMSIG(status)); 1475 packet_put_int(WTERMSIG(status));
1476#ifdef WCOREDUMP
1476 packet_put_char(WCOREDUMP(status)); 1477 packet_put_char(WCOREDUMP(status));
1478#else /* WCOREDUMP */
1479 packet_put_char(0);
1480#endif /* WCOREDUMP */
1477 packet_put_cstring(""); 1481 packet_put_cstring("");
1478 packet_put_cstring(""); 1482 packet_put_cstring("");
1479 packet_send(); 1483 packet_send();