Lines Matching refs:pid
122 static int find_pppd(int id, pid_t *pid)
138 *pid = 0;
144 *pid = atoi(de->d_name);
154 return *pid != 0;
159 int pid = fork();
162 switch (pid) {
170 return pid;
246 pid_t pid;
253 if (find_pppd(di->id, &pid)) {
257 printf("rfcomm%d: %s channel %d pppd pid %d\n",
258 di->id, dst, di->channel, pid);
267 pid_t pid;
277 if (find_pppd(di->id, &pid)) {
278 if (kill(pid, SIGINT) < 0)
310 int pid;
321 pid = dun_exec(tty, pppd, args);
322 if (pid < 0) {
329 waitpid(pid, &status, 0);