| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
sockets by sending the fd one-by-one. This allows to start httpd with
max 32 server instances and many server sockets without changing the
default rlimits in any way.
OK rzalamena@
|
| |
|
|
|
|
|
|
|
|
| |
start up. To achieve this proc_init() initiates only the necessary pipes
between child and parent, allocate and distribute fds in proc_connect().
In case of configuration checks ('-n') we do nothing in proc_init() and
proc_connect().
ok reyk@
|
| |
|
|
|
|
| |
to exit gracefully instead of fatal()ing.
ok reyk@
|
| |
|
|
|
|
| |
internals.
ok phessler@
|
| |
|
|
|
|
| |
the CLOEXEC flag ourselves.
ok bluhm@, deraadt@
|
| |
|
|
|
| |
From deraadt@
OK rzalamena@
|
| |
|
|
| |
OK rzalamena@
|
| | |
|
| |
|
|
|
|
|
| |
variable and limit it from 128 to 32 instances (the old value).
While here, move a few PROC_ defines around.
OK rzalamena@
|
| |
|
|
| |
Pointed out by benno@
|
| |
|
|
|
|
|
|
| |
receiving side of proc_connect(). Move some code from main into
proc_init(), the function is now called by parent and children, not
just the parent and it is less copy + paste for other daemons.
OK florian@
|
| |
|
|
| |
the old behaviour and unbreaks the regress tests.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
This commit implemented the basic functions to proc.c to make it not rely
on global variables, malloc()ed memory and CLOEXEC pipes.
Fix child proc titles from reyk@
ok reyk@, florian@
|
| |
|
|
|
|
| |
anymore. Also fix the process initialization prototypes.
ok reyk@
|
| |
|
|
|
|
|
| |
kill()ing child process.
"Looks good to me" millert@
ok benno@
|
| |
|
|
|
|
|
|
|
| |
To keep the debug functionality intact and correct we'll use the pid
field in the imsg header to pass the instance number. Remember to always
pass 'ps_instance + 1' otherwise libutil will fill imsg header pid field
with the imsgbuf pid (which is the current process pid).
ok reyk@
|
| |
|
|
|
|
|
| |
We got the same information in ps_instances[proc] (more accurate) and
we avoid allocating unnecessary memory for pipe storage.
ok reyk@
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
As done in iked and snmpd.
OK jung@
|
| | |
|
| |
|
|
|
|
|
| |
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.
OK benno@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of u_intN_t) and replace u_int with unsigned int. Mixing both
variants is a bad style and most contributors seem to prefer this
style; it also helps us to get used to it, portability, and
standardization.
Theoretically no binary change, except one in practice: httpd.o has a
different checksum because gcc with -O2 pads/optimizes "struct
privsep" differently when using "unsigned int" instead "u_int" for the
affected members. "u_int" is just a typedef of "unsigned int", -O0
doesn't build the difference and clang with -O2 doesn't do it either -
it is just another curiosity from gcc-land.
OK semarie@
|
| |
|
|
|
|
|
|
|
| |
needed by its ancestor. jsg@, include-what-you-use, and some manual
review helped to cleanup the headers (take iwyu with a grain of salt).
Based on common practice, httpd.h now also includes the necessary
headers for itself.
OK florian@
|
| |
|
|
|
|
| |
*Do* pull it in when in_{port,addr}_h is needed and <netinet/in.h> isn't.
ok reyk@
|
| | |
|
| |
|
|
| |
ok millert@
|
| |
|
|
|
|
| |
syslog is still supported but disabled by default.
ok deraadt@
|
| |
|
|
| |
The secrect plan is to add it later using the ressl wrapper library.
|
| | |
|
|
|
web server. It is not finished yet and I just started it today, but
the goal is to provide an HTTP server that a) provides minimal
features, b) serves static files, c) provides FastCGI support, and d)
follows common coding practices of OpenBSD.
It will neither support plugins, nor custom memory allocators, EBCDIC
support, PCRE or any other things that can be found elsewhere.
httpd(8) is not intended to provide a fully-featured replacement for
nginx(8) or the Apache, but it will provide enough functionality that
is needed in the OpenBSD base system.
ok deraadt@
|