Commit Briefs

Omar Polo

drop the dependency on lex by implementing yylex by ourselves

The actual implementation is based off doas' parse.y. This gave us various benefits, like cleaner code, \ to break long lines, better handling of quotes etc...


Omar Polo

kill unused variable

leftover from the handle_imsg_log -> do_log transition.


Omar Polo

be quieter

nobody really cares if must_read fails, as it normally shouldn't. It only clutters the regression tests with scary messages that looks like failure but are, in fact, expected.


Omar Polo

allow sending fd to log on to the logger process

the logger process now can receive a file descriptor to write logs to. At the moment the logic is simple, if it receives a file it logs there, otherwise it logs to syslog. This will allow to log on custom log files.


Omar Polo

add some simple test for fastcgi

and while there reorder the targets in the Makefile a bit



Omar Polo

explicitly use c->fd instead of fd

Yep, fd should be the file descriptor, but for lazyness when manually calling the function sometimes we supply 0 as fd and event. Instead of fixing the usage, do as other of such functions do in this circumstances: use c->fd.


Omar Polo

mark backend as FCGI_READY when getting a fd

otherwise clients will remain stuck waiting for a pending request that doesn't exist (see apply_fastcgi switch.)


Omar Polo

indentation


Omar Polo

free fastcgi param list


Omar Polo

TAILQ_REMOVE env and aliases during config_free

it's not technically required, since a couple of lines below we free whole host struct, and we don't have code that may use h->{env,aliases} afterwards, but it's nice not to have invalid pointers around. it may bite in the future.


Omar Polo

mention FastCGI in the README.md


Omar Polo

fix warnings in manpage

man -Tlint



Omar Polo

add `param' keyword