summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-03-07 01:02:39 +0000
committerbrian <brian@FreeBSD.org>1999-03-07 01:02:39 +0000
commit2e90b5dd04edb9d4ad9cb1164ae023c2df454ac9 (patch)
tree897a5ea66bfa96699cf5284a40d976fde85e70fc /usr.sbin/ppp/main.c
parent095548bf2b7a6db930e5adb1cb20a6d7cd56f736 (diff)
downloadFreeBSD-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/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c10
1 files changed, 4 insertions, 6 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)
OpenPOWER on IntegriCloud