1 pppd: Fix creation of linkpidfile
3 When pppd is run without "nodetach" or with "updetach", the linkpidfile is
4 never created. The call to create_linkpidfile() is protected by a check for
5 linkpidfile[0] but this is only filled in when create_linkpidfile() is called.
7 This patch changes to code to allways uncondiationally call
8 create_linkpidfile(), it originated from the Debian project.
10 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
14 @@ -773,8 +773,7 @@ detach()
15 /* update pid files if they have been written already */
19 - create_linkpidfile(pid);
20 + create_linkpidfile(pid);
21 exit(0); /* parent dies */