Lines Matching refs:pppd_pid
57 static pid_t pppd_pid; variable
98 if (pppd_pid) { in stop_pppd()
100 log_print(INFO, "Sending signal to pppd (pid = %d)", pppd_pid); in stop_pppd()
101 kill(pppd_pid, SIGTERM); in stop_pppd()
102 waitpid(pppd_pid, &status, 0); in stop_pppd()
103 pppd_pid = 0; in stop_pppd()
228 if (signal == SIGCHLD && waitpid(pppd_pid, &status, WNOHANG) == pppd_pid in main()
233 pppd_pid = 0; in main()
316 if (pppd_pid) { in start_pppd()
317 log_print(WARNING, "Pppd is already started (pid = %d)", pppd_pid); in start_pppd()
324 pppd_pid = fork(); in start_pppd()
325 if (pppd_pid < 0) { in start_pppd()
330 if (!pppd_pid) { in start_pppd()
347 log_print(INFO, "Pppd started (pid = %d)", pppd_pid); in start_pppd()
362 if (pppd_pid) { in start_pppd_ol2tp()
363 log_print(WARNING, "Pppd is already started (pid = %d)", pppd_pid); in start_pppd_ol2tp()
370 pppd_pid = fork(); in start_pppd_ol2tp()
371 if (pppd_pid < 0) { in start_pppd_ol2tp()
376 if (!pppd_pid) { in start_pppd_ol2tp()
415 log_print(INFO, "Pppd started (pid = %d)", pppd_pid); in start_pppd_ol2tp()
429 if (pppd_pid) { in start_pppd_pptp()
430 log_print(WARNING, "Pppd is already started (pid = %d)", pppd_pid); in start_pppd_pptp()
436 pppd_pid = fork(); in start_pppd_pptp()
437 if (pppd_pid < 0) { in start_pppd_pptp()
442 if (!pppd_pid) { in start_pppd_pptp()
469 log_print(INFO, "Pppd started (pid = %d)", pppd_pid); in start_pppd_pptp()