- (dtucker) [session.c] Remove #ifdef TIOCSBRK kludge.

This commit is contained in:
Darren Tucker 2003-08-13 20:28:14 +10:00
parent 7802f31914
commit d85efee437
2 changed files with 4 additions and 5 deletions

View File

@ -1,3 +1,6 @@
20030813
- (dtucker) [session.c] Remove #ifdef TIOCSBRK kludge.
20030811
- (dtucker) OpenBSD CVS Sync
(thanks to Simon Wilkinson for help with this -dt)
@ -815,4 +818,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2888 2003/08/11 13:00:33 dtucker Exp $
$Id: ChangeLog,v 1.2889 2003/08/13 10:28:14 dtucker Exp $

View File

@ -1696,7 +1696,6 @@ session_break_req(Session *s)
break_length = packet_get_int();
packet_check_eom();
#if defined(TIOCSBRK) && defined(TIOCCBRK)
if (s->ttyfd == -1)
return 0;
/* we will sleep from 500ms to 3000ms */
@ -1707,9 +1706,6 @@ session_break_req(Session *s)
usleep(break_length * 1000);
ioctl(s->ttyfd, TIOCCBRK, NULL);
return 1;
#else
return 0;
#endif
}
static int