diff options
author | 2001-06-20 13:56:39 +0000 | |
---|---|---|
committer | 2001-06-20 13:56:39 +0000 | |
commit | e1209187ab0d339f92d07309863759a1cfc14ff3 (patch) | |
tree | f706db995dc8b5fd5a54cf7ea9a55d4eb8475100 /usr.bin/ssh/clientloop.c | |
parent | we don't use "/" in the beginning of the name in MANSUBDIR (diff) | |
download | wireguard-openbsd-e1209187ab0d339f92d07309863759a1cfc14ff3.tar.xz wireguard-openbsd-e1209187ab0d339f92d07309863759a1cfc14ff3.zip |
move from channel_stop_listening to channel_free_all,
call channel_free_all before calling waitpid() in serverloop.
fixes the utmp handling; report from Lutz.Jaenicke@aet.TU-Cottbus.DE
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r-- | usr.bin/ssh/clientloop.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 3a1b43dda3d..a62a71131b5 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -59,7 +59,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: clientloop.c,v 1.75 2001/06/04 23:07:20 markus Exp $"); +RCSID("$OpenBSD: clientloop.c,v 1.76 2001/06/20 13:56:39 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -546,7 +546,7 @@ process_escapes(Buffer *bin, Buffer *bout, Buffer *berr, char *buf, int len) leave_raw_mode(); /* Stop listening for new connections. */ - channel_stop_listening(); + channel_close_all(); /* proto1 only XXXX */ printf("%c& [backgrounded]\n", escape_char); @@ -926,8 +926,7 @@ client_loop(int have_pty, int escape_char_arg, int ssh2_chan_id) if (have_pty) signal(SIGWINCH, SIG_DFL); - /* Stop listening for connections. */ - channel_stop_listening(); + channel_free_all(); if (have_pty) leave_raw_mode(); |