Tree for my work on http://tools.suckless.org/quark/
Find a file
Dominik Schmidt 094c8ba814 Open a new process group before setting up signal handler
When cleaning up after a caught signal, quark forwards the signal to all
processes in the process group with `kill(0, ...)`. If we do not open up a new
process group in the parent process, quarks parent will be sent a SIG... too,
resulting it to shut down (especially considering that the parent process might
run as root).

As a result, if we set up the service with djb's excellent daemontools,
`svc -d quark` will terminate the svscan-process and tear all other services
down with it.

See also <https://cr.yp.to/daemontools/faq/create.html#pgrphack>.
2018-07-02 07:14:00 +02:00
arg.h Rename _i,_argused to i_,argused_ 2017-08-04 17:57:58 +02:00
config.def.h Introduce flag-centric usage 2018-03-05 00:14:25 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
http.c Clean up request host properly 2018-04-03 01:03:03 +02:00
http.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
LICENSE util: don't initialize server, it's already done in main() 2018-03-05 01:00:50 +01:00
main.c Open a new process group before setting up signal handler 2018-07-02 07:14:00 +02:00
Makefile Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
quark.1 permit prefix to be empty in -v format string 2018-04-02 09:57:58 +02:00
resp.c Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
resp.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
sock.c Add netinet/in.h to sock.c 2018-03-05 10:24:46 +01:00
sock.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
util.c util: don't initialize server, it's already done in main() 2018-03-05 01:00:50 +01:00
util.h Update the documentation to reflect the new flag-centric usage 2018-03-05 09:51:29 +01:00