diff options
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.11 2008/02/20 18:31:53 james + * *** empty log message *** + * * Revision 1.10 2008/02/15 23:52:12 james * *** empty log message *** * @@ -223,7 +226,9 @@ tty_pre_select (TTY * t, fd_set * rfds, fd_set * wfds) timersub (&now, &t->hangup_clock, &dif); if (dif.tv_sec) { +#if 0 fprintf (stderr, "+DTR\n"); +#endif line = TIOCM_DTR; ioctl (t->rfd, TIOCMBIS, &line); @@ -241,8 +246,11 @@ tty_get_status (TTY * t, TTY_Status * s) s->lines = 0; ioctl (t->rfd, TIOCMGET, &s->lines); + +#if 0 if (t->hanging_up) fprintf (stderr, "s->lines & TIOCM_DTR=%x\n", s->lines & TIOCM_DTR); +#endif if (tcgetattr (t->rfd, &s->termios)) return -1; @@ -305,7 +313,9 @@ tty_hangup (TTY * t) t->hanging_up = 1; gettimeofday (&t->hangup_clock, NULL); +#if 0 fprintf (stderr, "-DTR\n"); +#endif } |