From c467adc170fe2fb16321bcd9d3bb9a3a918f51e3 Mon Sep 17 00:00:00 2001 From: dequis Date: Tue, 3 Nov 2015 08:43:04 -0300 Subject: sighandler_crash: Mark irc socket as blocking before writing Just to ensure the whole thing gets written, since this can't be async for obvious reasons. --- unix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'unix.c') diff --git a/unix.c b/unix.c index 298c8427..8794a904 100644 --- a/unix.c +++ b/unix.c @@ -291,6 +291,7 @@ static void sighandler_crash(int signal) for (l = irc_connection_list; l; l = l->next) { irc_t *irc = l->data; + sock_make_blocking(irc->fd); write(irc->fd, message, len); } -- cgit v1.2.3