kristapsdz
a395446859
Rename sun -> un so as not to trample SunOS macro. Don't use LOG_PERROR if
...
it doesn't exist. Don't use sun_len if it doesn't exist.
2020-03-15 14:46:33 +00:00
kristapsdz
1695d9f70b
sys/poll.h -> poll.h
2018-12-18 09:03:51 +00:00
kristapsdz
08c108e70b
ifndef -> if
2017-10-18 21:47:14 +00:00
kristapsdz
685abdeced
Full switch to oconfigure instead of current system, so remove all of the
...
test and compat files. These are now in tests.c and compats.c, and driven
by the configure script. Also remove the MD5 code, which is part of
compats.c. Lastly, move ifdefs to ifs, remove defined (same), and also
remove HAVE_CONFIG_H.
2017-10-18 21:36:59 +00:00
kristapsdz
91839b6800
Have SIGCHLD report the proper error when caught. Prior to this check, it
...
was printing the wrong message.
This does not change any functionality beyond that.
From part of a patch in https://github.com/kristapsdz/kcgi/pull/3 by
https://github.com/cornett -- thanks!
2016-04-19 10:12:01 +00:00
kristapsdz
4aab895e96
When kfcgi processes a SIGHUP, don't let child exits cause us to exit
...
when we next re-enter the wait loop. (In fixed pool mode.) This from a
modified patch https://github.com/kristapsdz/kcgi/pull/3 by
https://github.com/cornett -- thanks so much!
2016-04-19 10:03:50 +00:00
kristapsdz
5ef49c6c4e
Have -l option actually reflect what it's supposed to do.
...
From https://github.com/kristapsdz/kcgi/pull/1 , posted by
https://github.com/cornett--thanks !
2016-04-06 09:54:23 +00:00
kristapsdz
b0daf59ce7
Add test for arc4random instead of testing for __linux__.
2016-03-15 14:50:17 +00:00
kristapsdz
43a314aa27
Compilation on Linux.
2016-03-15 14:45:51 +00:00
kristapsdz
7e2084e9ec
Fix a coverity double-close find.
2016-03-15 12:21:45 +00:00
kristapsdz
94bbfb4c9d
Fix return value check.
2016-03-15 11:44:35 +00:00
kristapsdz
46264bbc69
Make the cookie be a 64-bit random number.
2016-03-15 11:35:12 +00:00
kristapsdz
de85ff2c83
Allow kfcgi(8) to handle SIGHUP to shut down its children and restart them.
2016-03-15 03:48:03 +00:00
kristapsdz
15440cc0fb
Use reallocarray instead of realloc.
2016-03-13 06:52:25 +00:00
kristapsdz
4ebb052946
Fix some no-ops found by scan-build.
2016-03-13 06:35:02 +00:00
kristapsdz
3eed3c30da
Add ability to "slough" away workers when they're no longer needed.
...
Also default to daemonising.
2016-03-13 06:08:30 +00:00
kristapsdz
6102e9e92d
Specify a maximum number of servers. Clean up the debugging messages
...
(these will later be removed).
2016-03-12 13:32:13 +00:00
kristapsdz
0106ebd441
Allow an extension to FastCGI indicated by an environment variable set in
...
application clients. This stipulates that clients should read a file
descriptor from their control socket instead of accepting a file descriptor.
Then add a "variable pool" mode to kfcgi(8) that accepts descriptors and
passes them in the aforementioned way. This allows for growable pools of
application clients.
2016-03-12 08:51:34 +00:00
kristapsdz
04dd92baf8
Convert atoi() to strtonum(), inspired from a patch by Jan Schreiber--thanks!
2016-02-25 23:11:10 +00:00
kristapsdz
0618d1ec20
Add two coverity ignoring annotations.
...
These reference CID 60320, 60309.
2016-01-25 22:13:07 +00:00
kristapsdz
190a1c1710
Allow the listen(2) backlog to be specified.
2015-08-10 22:28:51 +00:00
kristapsdz
17fb543a5c
Don't use PATH for kfcgi.
2015-07-21 19:32:21 +00:00
kristapsdz
b1da7a0fbd
Initial attempt at putting control socket into a sandbox.
2015-07-19 08:52:24 +00:00
kristapsdz
7c22e03e7d
Use a chroot() jail for kfcgi(8).
2015-07-19 04:35:28 +00:00
kristapsdz
4fbf4b2f7e
Controller no longer using kworker as well.
2015-07-17 15:55:23 +00:00
kristapsdz
de552ba870
Linux compile (initial).
2015-07-16 22:43:17 +00:00
kristapsdz
efec80dab3
Clean up and simplify runner.
2015-07-16 17:16:30 +00:00
kristapsdz
cb42268261
Move control of FastCGI into the web application itself and out of kfcgi.
2015-07-16 15:49:13 +00:00
kristapsdz
89106ac3c5
More Mac OSX apache work.
2015-07-15 23:45:40 +00:00
kristapsdz
6b50905850
Proper shutting down with FastCGI (found with valgrind).
2015-07-15 22:29:06 +00:00
kristapsdz
d850831ee4
Working under Mac OSX Apache as well.
2015-07-15 20:13:03 +00:00
kristapsdz
950d861e02
Turn on FastCGI handling in front-end.
...
Back-end is now reasonably stable.
2015-07-15 13:33:46 +00:00
kristapsdz
eb3bf9b718
Split output writing into output.c to better manage the FastCGI frames.
2015-07-15 11:17:40 +00:00
kristapsdz
44ac7b29f2
More FastCGI scaffolding.
2015-07-14 21:22:55 +00:00
kristapsdz
7980789dba
Initial bits for FastCGI.
...
Trying this all again...
2015-07-14 17:45:47 +00:00