Changed terminal io defines

This commit is contained in:
Michiel Broek 2004-11-30 19:50:39 +00:00
parent b04eb35add
commit 7d64e500af

View File

@ -306,17 +306,17 @@ void sendbrk(void)
if (isatty(0)) {
#ifdef USE_TERMIOS
tcsendbreak(fd,0);
tcsendbreak(0, 0);
#endif
#ifdef USE_TERMIO
ioctl(fd, TCSBRK, 0);
ioctl(0, TCSBRK, 0);
#endif
#ifdef USE_SGTTY
#ifdef TIOCSBRK
sleep(1);
ioctl(fd, TIOCSBRK, 0);
ioctl(0, TIOCSBRK, 0);
sleep(1);
ioctl(fd, TIOCCBRK, 0);
ioctl(0, TIOCCBRK, 0);
#endif
#endif
}