diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1696,7 +1696,6 @@ session_break_req(Session *s) | |||
1696 | break_length = packet_get_int(); | 1696 | break_length = packet_get_int(); |
1697 | packet_check_eom(); | 1697 | packet_check_eom(); |
1698 | 1698 | ||
1699 | #if defined(TIOCSBRK) && defined(TIOCCBRK) | ||
1700 | if (s->ttyfd == -1) | 1699 | if (s->ttyfd == -1) |
1701 | return 0; | 1700 | return 0; |
1702 | /* we will sleep from 500ms to 3000ms */ | 1701 | /* we will sleep from 500ms to 3000ms */ |
@@ -1707,9 +1706,6 @@ session_break_req(Session *s) | |||
1707 | usleep(break_length * 1000); | 1706 | usleep(break_length * 1000); |
1708 | ioctl(s->ttyfd, TIOCCBRK, NULL); | 1707 | ioctl(s->ttyfd, TIOCCBRK, NULL); |
1709 | return 1; | 1708 | return 1; |
1710 | #else | ||
1711 | return 0; | ||
1712 | #endif | ||
1713 | } | 1709 | } |
1714 | 1710 | ||
1715 | static int | 1711 | static int |