Protect against fd exhaustion when reopening database files. Only accept client or control connections when there are at least 8 fds available, and close a connection before calling imsg_read if it would be unable to accept an fd from the parent process.
ok gilles@
|