diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2011-10-24 02:13:14 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2011-10-24 02:13:14 +0000 |
commit | 8671e9158d0e3a35a32471999e49edb93500e8ac (patch) | |
tree | 9d41183d5ec257e9aa3ba7aadbc26337ae7a5934 /usr.bin/ssh | |
parent | 4202efec21bf5271234b38077846ec42af7a834c (diff) |
bz#1859: send tty break to pty master instead of (probably already
closed) slave side; "looks good" markus@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index 952dc5fe9f6..3bce599c0dd 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.258 2010/11/25 04:10:09 djm Exp $ */ +/* $OpenBSD: session.c,v 1.259 2011/10/24 02:13:13 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -1808,7 +1808,7 @@ session_break_req(Session *s) packet_get_int(); /* ignored */ packet_check_eom(); - if (s->ttyfd == -1 || tcsendbreak(s->ttyfd, 0) < 0) + if (s->ptymaster == -1 || tcsendbreak(s->ptymaster, 0) < 0) return 0; return 1; } |