diff options
author | brian <brian@FreeBSD.org> | 1999-03-07 01:02:39 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-03-07 01:02:39 +0000 |
commit | 2e90b5dd04edb9d4ad9cb1164ae023c2df454ac9 (patch) | |
tree | 897a5ea66bfa96699cf5284a40d976fde85e70fc /usr.sbin | |
parent | 095548bf2b7a6db930e5adb1cb20a6d7cd56f736 (diff) | |
download | FreeBSD-src-2e90b5dd04edb9d4ad9cb1164ae023c2df454ac9.zip FreeBSD-src-2e90b5dd04edb9d4ad9cb1164ae023c2df454ac9.tar.gz |
Reopen descriptor 0 as /dev/tty when in interactive mode
in OpenBSD as well as FreeBSD (I still don't know why).
Add a debug diagnostic when creating a child process as
a link.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/main.c | 10 | ||||
-rw-r--r-- | usr.sbin/ppp/modem.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index de93fbb..958a16d 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.149 1999/02/02 09:35:29 brian Exp $ + * $Id: main.c,v 1.150 1999/02/06 02:54:46 brian Exp $ * * TODO: */ @@ -276,11 +276,10 @@ main(int argc, char **argv) #endif label = ProcessArgs(argc, argv, &mode, &alias); -#ifdef __FreeBSD__ /* - * A FreeBSD hack to dodge a bug in the tty driver that drops output - * occasionally.... I must find the real reason some time. To display - * the dodgy behaviour, comment out this bit, make yourself a large + * A FreeBSD & OpenBSD hack to dodge a bug in the tty driver that drops + * output occasionally.... I must find the real reason some time. To + * display the dodgy behaviour, comment out this bit, make yourself a large * routing table and then run ppp in interactive mode. The `show route' * command will drop chunks of data !!! */ @@ -291,7 +290,6 @@ main(int argc, char **argv) return 2; } } -#endif /* Allow output for the moment (except in direct mode) */ if (mode == PHYS_DIRECT) diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 4d079dd..6b4020e 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.103 1999/02/25 20:05:55 brian Exp $ + * $Id: modem.c,v 1.104 1999/02/26 21:28:12 brian Exp $ * * TODO: */ @@ -591,6 +591,8 @@ modem_Open(struct physical *modem, struct bundle *bundle) close(fids[1]); modem->fd = fids[0]; waitpid(pid, &stat, 0); + log_Printf(LogDEBUG, "Using descriptor %d for child\n", + modem->fd); break; } } |