commit | e89e70e71575417195285a3ea55c430654f9fc21 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Fri Aug 07 15:39:10 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Fri Aug 07 15:39:10 2009 +0000 |
tree | 7b2693e599d1137fa818a6ec8330a299de536c4d | |
parent | ccaf8724e4c5f1909c8eaf62963ded1265a271b2 [diff] |
If there is an error in the configuration file, don't just exit(1) as this can cause the client to hang. Instead, send the error message, then mark the client as bad and start a normal shutdown so the server exits once the error is written. This also allows some code duplicating daemon(3) to be trimmed and logging to begin earlier. Prompted by Theo noticing the behaviour on error wasn't documented.