Permalink
Browse files

bz#1859: send tty break to pty master instead of (probably already

closed) slave side; "looks good" markus@
  • Loading branch information...
djmdjm committed Oct 24, 2011
1 parent 6eb4542 commit b5e9f30ff9ca06a2f2a83a5638a58828b6827e7e
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr.bin/ssh/session.c
View
@@ -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;
}

0 comments on commit b5e9f30

Please sign in to comment.