Commit Briefs
ensure %p (path) is always absolute
with the recent changes, sometimes the path may not start with a '/'. This ensures that %s is ALWAYS an absolute path.
don't save the directory fd in c->pfd
scandir_fd already calls closedir, which in turns closes the fd
list instead of fixed-size array for vhosts and locations
saves some bytes of memory and removes the limit on the maximum number of vhosts and location blocks.
move all sandbox-related code to sandbox.c
while there, add capsicum for the logger process
refactoring: imsg everywhere
use imsg to handle ALL kinds of IPC in gmid. This simplifies and shorten the code, and makes everything more uniform too.
move vhost_should_log call to server.c
log.o is linked to some regress/ stuff. Calling from there a vhost_* function means that we should link the regress/stuff to server.o too (and that would pull in other stuff...). Moving the call is easier, and also probably better.