some compilers don't tolerate void-casting for warn_unused_result
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
/* Write to each unique event context. */
for (sl = sig_state->sig_handlers[signum]; sl; sl = sl->next) {
if (sl->se->event_ctx && sl->se->event_ctx != ev) {
+ ssize_t ret;
+
ev = sl->se->event_ctx;
/* doesn't matter if this pipe overflows */
- (void) write(ev->pipe_fds[1], &c, 1);
+ do {
+ ret = write(ev->pipe_fds[1], &c, 1);
+ } while (ret == -1 && errno == EINTR);
}
}