Tree for my work on http://tools.suckless.org/quark/
Find a file
Armin Friedl d38603dc0e
All checks were successful
continuous-integration/drone/push Build is passing
Raise RLIMIT_NPROC only if maxnprocs higher than current limits
Otherwise maxnprocs may actually lower the limit. Especially when using the
default limit of 512, this quickly causes quark's fork() to fail when started
with a non-exclusive user.

To mitigate this, we respect system defaults and only raise the limit if it is
an actual raise.
2020-08-17 21:37:20 +02:00
.drone.yml Add minibomb for demonstration 2020-08-17 21:01:17 +02:00
arg.h Correct arg.h license 2018-07-16 11:49:51 +02:00
config.def.h Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
http.c Replace off_t with size_t 2020-08-05 18:59:55 +02:00
http.h Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
LICENSE Use timegm() instead of mktime() to generate UNIX-timestamp 2020-07-23 16:48:34 +02:00
main.c Raise RLIMIT_NPROC only if maxnprocs higher than current limits 2020-08-17 21:37:20 +02:00
Makefile Add minibomb for demonstration 2020-08-17 21:01:17 +02:00
minibomb.c Add minibomb for demonstration 2020-08-17 21:01:17 +02:00
quark.1 Make host parameters optional 2020-04-21 17:04:52 +02:00
README.md Add README 2020-08-16 23:05:04 +02:00
resp.c Replace off_t with size_t 2020-08-05 18:59:55 +02:00
resp.h Replace off_t with size_t 2020-08-05 18:59:55 +02:00
sock.c Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
sock.h Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
util.c Refactor response-generation 2020-08-05 13:41:44 +02:00
util.h Refactor response-generation 2020-08-05 13:41:44 +02:00

This is my private tree of quark. Upstream can be found at https://git.suckless.org/quark.

Quark is a small http server.

Issues

fork: Resource temporarily unavailable

When running quark (#6606994) on my system with sudo ./quark -p 9763 -u <user> -g <group> it dies with ./quark: fork: Resource temporarily unavailable at fork().

Github Users

If you are visiting this repository on GitHub, you are on a mirror of https://git.friedl.net/playground/suckless-quark. This mirror is regularily updated with my other GitHub mirrors. In contrast to other projects I do not intend to move this tree to GitHub in the future. It is meant to stay a read-only mirror.

You are welcome to pull any changes from this repository into your quark tree. If you want to contribute consider contributing directly to upstream.

If you still - for whichever reasons - want to contribute to my tree directly, feel free to send patches to dev[at]friedl[dot]net. Alternatviely you can issue a pull request on GitHub which will be cherry picked into my tree.