]> git.ozlabs.org Git - ppp.git/commitdiff
Create link pid file (from the linkname option value) straight
authorPaul Mackerras <paulus@samba.org>
Fri, 12 Nov 2004 11:21:41 +0000 (11:21 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 12 Nov 2004 11:21:41 +0000 (11:21 +0000)
away when starting pppd.  Suggested by Shun-ichi TAHARA.

pppd/main.c

index 285f219061f3a2ff53d269916b4400cdeb4d1a07..ffeaca09a91f5f639a1212ae5dec04bef6bf69c4 100644 (file)
@@ -66,7 +66,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: main.c,v 1.145 2004/11/12 10:30:51 paulus Exp $"
+#define RCSID  "$Id: main.c,v 1.146 2004/11/12 11:21:41 paulus Exp $"
 
 #include <stdio.h>
 #include <ctype.h>
@@ -470,6 +470,8 @@ main(argc, argv)
 
     setup_signals();
 
+    create_linkpidfile(getpid());
+
     waiting = 0;
 
     /*