| /lighttpd1.4/src/ |
| H A D | lighttpd-angel.c | 24 static pid_t pid = -1; variable 29 if (pid <= 0) return; in signal_handler() 38 kill(pid, sig); in signal_handler() 68 if (-1 == pid) { in main() 69 pid = fork(); in main() 70 if (-1 == pid) return -1; in main() 71 if (0 == pid) { in main() 80 if ((pid_t)-1 == waitpid(pid, &exitcode, 0)) { in main() 98 fprintf(stderr, msg, __FILE__, __LINE__, pid, code); in main() 100 pid = restart; /* -1 for restart, 0 to exit */ in main() [all …]
|
| H A D | fdlog_maint.c | 41 pid_t pid; member 60 pid_t pid; in fdlog_pipe_spawn() local 73 if (pid > 0) { in fdlog_pipe_spawn() 81 return pid; in fdlog_pipe_spawn() 94 return (fdp->pid > 0) ? 1 : -1; in fdlog_pipe_restart() 103 if (fdp->pid > 0) continue; in fdlog_pipes_restart() 114 if (fdp->pid != pid) continue; in fdlog_pipes_waitpid_cb() 116 fdp->pid = -1; in fdlog_pipes_waitpid_cb() 145 fdp->pid = -1; in fdlog_pipes_abandon_pids() 171 fdp->pid = pid; in fdlog_pipe_init() [all …]
|
| H A D | server.c | 252 pid_t pid; in daemonize() local 267 if (0 < pid) { in daemonize() 958 pid_t pid = -1; in server_graceful_state_bg() local 959 if (pid < 0) { in server_graceful_state_bg() 971 pid_t pid = fork(); in server_graceful_state_bg() local 1110 pid_t pid; in server_main_setup_workers() local 1226 srv->pid = getpid(); in server_main_setup_workers() 1678 srv->pid = getpid(); in server_main_setup() 1915 pid_t pid; in server_handle_sigchld() local 1919 if (pid > 0) { in server_handle_sigchld() [all …]
|
| H A D | gw_backend.c | 281 else if (proc->pid == pid && proc->state == PROC_STATE_RUNNING) { in gw_proc_connect_error() 398 proc->pid = 0; in gw_proc_waitpid() 610 proc->pid = (dfd >= 0) in gw_spawn_connection() 620 if (-1 == proc->pid) { in gw_spawn_connection() 623 proc->pid = 0; in gw_spawn_connection() 648 proc->pid = 0; in gw_spawn_connection() 1310 p->srv_pid = srv->pid; in gw_set_defaults_backend() 1944 hctx->pid = hctx->proc->pid; in gw_write_request() 2355 if (proc->is_local && 1 == proc->load && proc->pid == hctx->pid in gw_recv_response_error() 2926 if (!proc->is_local || proc->pid != pid) continue; in gw_handle_waitpid_cb() [all …]
|
| H A D | mod_rrdtool.c | 73 if (p->rrdtool_pid > 0 && p->srv_pid == p->srv->pid) { in FREE_FUNC() 116 p->srv_pid = srv->pid; in mod_rrd_create_pipe() 397 if (srv->pid != p->srv_pid) return HANDLER_GO_ON; in TRIGGER_FUNC() 406 static handler_t mod_rrd_waitpid_cb(server *srv, void *p_d, pid_t pid, int status) { in mod_rrd_waitpid_cb() argument 408 if (pid != p->rrdtool_pid) return HANDLER_GO_ON; in mod_rrd_waitpid_cb() 409 if (srv->pid != p->srv_pid) return HANDLER_GO_ON; in mod_rrd_waitpid_cb()
|
| H A D | mod_cgi.c | 94 pid_t pid; member 378 static cgi_pid_t * cgi_pid_add(plugin_data *p, pid_t pid, handler_ctx *hctx) { in cgi_pid_add() argument 380 cgi_pid->pid = pid; in cgi_pid_add() 391 kill(cgi_pid->pid, sig); in cgi_pid_kill() 912 pid_t pid = (dfd >= 0) in cgi_create_env() local 922 if (-1 == pid) { in cgi_create_env() 941 hctx->cgi_pid = cgi_pid_add(p, pid, hctx); in cgi_create_env() 1167 msg, r->physical.path.ptr, (long long)hctx->cgi_pid->pid); in cgi_trigger_hctx_timeout() 1215 if (pid != cgi_pid->pid) continue; in cgi_waitpid_cb() 1228 "CGI pid %d died with signal %d", pid, WTERMSIG(status)); in cgi_waitpid_cb() [all …]
|
| H A D | fdevent.c | 423 pid_t pid = fork(); in fdevent_fork_execve() local 424 if (0 != pid) return pid; /* parent (pid > 0) or fork() error (-1 == pid) */ in fdevent_fork_execve() 482 int fdevent_waitpid(pid_t pid, int * const status, int nb) { in fdevent_waitpid() argument 485 do { rv = waitpid(pid, status, flags); } while (-1 == rv && errno == EINTR); in fdevent_waitpid() 489 int fdevent_waitpid_intr(pid_t pid, int * const status) { in fdevent_waitpid_intr() argument 490 return waitpid(pid, status, 0); in fdevent_waitpid_intr()
|
| H A D | gw_backend.h | 30 pid_t pid; /* PID of the spawned process (0 if not spawned locally) */ member 320 pid_t pid; member 366 handler_t gw_handle_waitpid_cb(server *srv, void *p_d, pid_t pid, int status);
|
| H A D | fdevent.h | 102 int fdevent_waitpid(pid_t pid, int *status, int nb); 103 int fdevent_waitpid_intr(pid_t pid, int *status);
|
| H A D | fdlog.h | 40 int fdlog_pipes_waitpid_cb (pid_t pid);
|
| H A D | plugins.h | 27 handler_t plugins_call_handle_waitpid(server *srv, pid_t pid, int status);
|
| H A D | plugin.h | 64 …handler_t (* handle_waitpid) (server *srv, void *p_d, pid_t pid, int status); /* upon a ch…
|
| H A D | base.h | 185 pid_t pid; member
|
| H A D | plugin.c | 391 handler_t plugins_call_handle_waitpid(server *srv, pid_t pid, int status) { in plugins_call_handle_waitpid() argument 398 while (plfd->fn&&(rc=plfd->fn(srv,plfd->data,pid,status))==HANDLER_GO_ON) in plugins_call_handle_waitpid()
|
| H A D | mod_ssi.c | 1130 pid_t pid; in process_ssi_stmt() local 1170 pid = fdevent_fork_execve(args[0], args, NULL, -1, c->file.fd, serrh_fd, -1); in process_ssi_stmt() 1171 if (-1 == pid) { in process_ssi_stmt() 1173 } else if (fdevent_waitpid(pid, &status, 0) < 0) { in process_ssi_stmt()
|
| H A D | configfile.c | 2313 pid_t pid; in config_parse_cmd() local 2322 pid = fdevent_fork_execve(args[0], args, NULL, -1, fds[1], -1, -1); in config_parse_cmd() 2323 if (-1 == pid) { in config_parse_cmd() 2343 if (pid != fdevent_waitpid(pid, &wstatus, 0)) { in config_parse_cmd()
|
| H A D | mod_ajp13.c | 778 hctx->proc->pid, hctx->proc->connection_name->ptr); in ajp13_recv_0() 804 hctx->proc->pid, hctx->proc->connection_name->ptr); in ajp13_recv_parse_loop()
|
| H A D | mod_fastcgi.c | 363 hctx->proc->pid, hctx->proc->connection_name->ptr); in fcgi_recv_0()
|
| H A D | network.c | 669 buffer_append_int(tb, srv->pid); /* getpid() */ in network_socket_activation_to_env()
|
| /lighttpd1.4/tests/ |
| H A D | LightyTest.pm | 116 my $pid = $self->{LIGHTTPD_PID}; 117 if (defined $pid && $pid != -1) { 118 kill('USR1', $pid) if (($ENV{"TRACEME"}||'') eq 'strace'); 119 kill('TERM', $pid) or return -1; 120 return -1 if ($pid != waitpid($pid, 0)); 493 my ($self, $pid) = @_; 494 return -1 if (-1 == $pid); 495 kill(2, $pid); 496 waitpid($pid, 0);
|
| /lighttpd1.4/doc/systemd/ |
| H A D | lighttpd.service | 7 PIDFile=/run/lighttpd.pid
|
| /lighttpd1.4/doc/config/ |
| H A D | lighttpd.conf | 129 server.pid-file = state_dir + "/lighttpd.pid"
|
| /lighttpd1.4/doc/outdated/ |
| H A D | configuration.txt | 57 # var.PID is initialised to the pid of lighttpd before config is parsed 392 server.pid-file 393 set the name of the .pid-file where the PID of the server should be placed.
|
| /lighttpd1.4/ |
| H A D | NEWS | 483 * [core] fix removal of server.pid-file when testing (fixes #3115) 2499 * [core] do not remove pid-file in test mode 4107 * added server.pid-file
|