3635a17b

By: NorfairKing <syd.kerckhove@gmail.com>

Close the notify socket even when sending fails

notifyImpl acquired an AF_UNIX datagram socket and only closed it on the
success path, so any exception from sendTo (or an async exception delivered
mid-send) leaked the descriptor. A long-running daemon pinging the watchdog
on a loop would accumulate leaked descriptors until socket() itself failed
with EMFILE (Too many open files). Wrap the socket in bracket so it is always
closed.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 6m42s 1s 1s 6m44s 6m42s
Eval - - - - -
Build - - - - -
Suite 6m42s 1s 1s 6m44s 6m42s

Timeline

0s