Lines Matching refs:pppd_pid
49 static pid_t pppd_pid; variable
90 if (pppd_pid) { in stop_pppd()
92 log_print(INFO, "Sending signal to pppd (pid = %d)", pppd_pid); in stop_pppd()
93 kill(pppd_pid, SIGTERM); in stop_pppd()
94 waitpid(pppd_pid, &status, 0); in stop_pppd()
95 pppd_pid = 0; in stop_pppd()
212 if (signal == SIGCHLD && waitpid(pppd_pid, &status, WNOHANG) == pppd_pid in main()
217 pppd_pid = 0; in main()
296 if (pppd_pid) { in start_pppd()
297 log_print(WARNING, "Pppd is already started (pid = %d)", pppd_pid); in start_pppd()
304 pppd_pid = fork(); in start_pppd()
305 if (pppd_pid < 0) { in start_pppd()
310 if (!pppd_pid) { in start_pppd()
345 log_print(INFO, "Pppd started (pid = %d)", pppd_pid); in start_pppd()