Commit Diff
- Commit:
c02f62d5c95274029a4a00e1aa97ef0d3f9bbeec
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- fix an fd leak in gotd's notify process This leak resulted in the gotd notify process spinning on CPU in an imsg_read() -> EAGAIN loop once it ran out of file descriptors.
- Actions:
- Patch | Tree
--- gotd/notify.c +++ gotd/notify.c @@ -116,6 +116,7 @@ remove_session(struct gotd_notify_session *session) slot = session_hash(session->id) % nitems(gotd_notify_sessions); STAILQ_REMOVE(&gotd_notify_sessions[slot], session, gotd_notify_session, entry); + close(session->iev.ibuf.fd); free(session); }