From bcc3aa21e53af9f5221a902f16937a0a7eecbfb7 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 10 Oct 2001 22:18:48 +0000 Subject: try to keep channels open until an exit-status message is sent. don't kill the login shells if the shells stdin/out/err is closed. this should now work: ssh -2n localhost 'exec > /dev/null 2>&1; sleep 10; exit 5'; echo ? --- usr.bin/ssh/channels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/channels.h') diff --git a/usr.bin/ssh/channels.h b/usr.bin/ssh/channels.h index 090d2ca6e64..89e48009dd5 100644 --- a/usr.bin/ssh/channels.h +++ b/usr.bin/ssh/channels.h @@ -32,7 +32,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* RCSID("$OpenBSD: channels.h,v 1.49 2001/10/09 21:59:41 markus Exp $"); */ +/* RCSID("$OpenBSD: channels.h,v 1.50 2001/10/10 22:18:47 markus Exp $"); */ #ifndef CHANNEL_H #define CHANNEL_H @@ -214,7 +214,7 @@ void auth_input_open_request(int, int, void *); /* channel close */ -int chan_is_dead(Channel *); +int chan_is_dead(Channel *, int); void chan_mark_dead(Channel *); void chan_init_iostates(Channel *); void chan_init(void); -- cgit v1.2.3