summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-06 20:50:57 +0000
committerbrian <brian@FreeBSD.org>1998-06-06 20:50:57 +0000
commit88b436b903942028007c3ce448108486c4da5547 (patch)
tree368d6bf6283d17e8c9c001f3bd584334c4a9a70a /usr.sbin/ppp/main.c
parent30cc111a0f023e7efe54d7c4ec29f9673fbc4901 (diff)
downloadFreeBSD-src-88b436b903942028007c3ce448108486c4da5547.zip
FreeBSD-src-88b436b903942028007c3ce448108486c4da5547.tar.gz
Put the correct pid in /var/run/tunX.pid
Suggested by: many
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 0b812c3..0a978f3 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.128 1998/05/29 18:32:11 brian Exp $
+ * $Id: main.c,v 1.129 1998/05/29 18:33:09 brian Exp $
*
* TODO:
*/
@@ -408,6 +408,8 @@ main(int argc, char **argv)
bundle->notify.fd = bgpipe[1];
}
+ bundle_LockTun(bundle); /* we have a new pid */
+
/* -auto, -dedicated, -ddial & -background */
prompt_Destroy(prompt, 0);
close(STDOUT_FILENO);
OpenPOWER on IntegriCloud