if TIOCSBRK and TIOCCBRK are not defined (eg Cygwin).
+20030807
+ - (dtucker) [session.c] Have session_break_req not attempt to send a break
+ if TIOCSBRK and TIOCCBRK are not defined (eg Cygwin).
+
20030802
- (dtucker) [monitor.h monitor_wrap.h] Remove excess ident tags.
- (dtucker) OpenBSD CVS Sync
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 */
usleep(break_length * 1000);
ioctl(s->ttyfd, TIOCCBRK, NULL);
return 1;
+#else
+ return 0;
+#endif
}
static int