Commit Briefs
factorize imsg_clear calls after imsg_flush failures
imsg_clear frees and closes resources allocated as part of enqueueing imsgs so it's a no-op after reads. discussed with and ok stsp@
add O_CLOEXEC (close-on-exec) flag to open(2) calls
suggested by millert ok thomas_adam