Lines Matching refs:pid
53 pid_t pid, ret; in ssh_askpass() local
69 if ((pid = fork()) == -1) { in ssh_askpass()
74 if (pid == 0) { in ssh_askpass()
98 while ((ret = waitpid(pid, &status, 0)) == -1) in ssh_askpass()
235 pid_t pid; member
244 pid_t pid = -1; in notify_start() local
272 if ((pid = fork()) == -1) { in notify_start()
278 if (pid == 0) { in notify_start()
290 if (pid != -1) in notify_start()
291 kill(pid, SIGTERM); in notify_start()
294 ret->pid = pid; in notify_start()
308 if (ctx != NULL && fmt != NULL && ctx->pid == -1) { in notify_complete()
320 if (ctx == NULL || ctx->pid <= 0) { in notify_complete()
324 kill(ctx->pid, SIGTERM); in notify_complete()
325 while ((ret = waitpid(ctx->pid, NULL, 0)) == -1) { in notify_complete()