Lines Matching defs:pid
291 LOG(NOTICE) << "Deleting worker process pid=" << wp->worker_pid
416 auto content = util::utos(config->pid) + '\n';
447 LOG(WARN) << "Changing owner of pid file " << pid_file << " failed: "
487 auto pid = fork();
489 if (pid != 0) {
490 if (pid == -1) {
495 shrpx_sd_notifyf(0, "MAINPID=%d\n", pid);
574 ipc_fd_str += util::utos(config->pid);
1549 pid_t pid;
1551 memcpy(&pid, buf.data(), sizeof(pid));
1553 LOG(NOTICE) << "Worker process pid=" << pid << " is ready";
1557 // pid.
1558 if (wp->worker_pid == pid) {
1562 LOG(INFO) << "Sending graceful shutdown event to worker process pid="
1648 pid_t pid = 0;
1651 pid = fork();
1654 if (pid == 0) {
1655 // We are in new process now, update pid for logger.
1656 log_config()->pid = getpid();
1744 if (pid == -1) {
1759 if (pid == -1) {
1780 LOG(NOTICE) << "Worker process [" << pid << "] spawned";
1782 return pid;
1803 mod_config()->pid = getpid();
1811 shrpx_sd_notifyf(0, "MAINPID=%d\n", config->pid);
1852 auto pid = fork_worker_process(ipc_fd
1865 if (pid == -1) {
1872 worker_process_add(std::make_unique<WorkerProcess>(loop, pid, ipc_fd
1938 config->pid = getpid();
3195 * $pid: PID of the running process.
3448 --pid-file=<PATH>
4018 auto pid = fork_worker_process(ipc_fd
4032 if (pid == -1) {
4043 worker_process_add(std::make_unique<WorkerProcess>(loop, pid, ipc_fd