aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-11-03 08:43:04 -0300
committerdequis <dx@dxzone.com.ar>2015-11-03 08:43:04 -0300
commitc467adc170fe2fb16321bcd9d3bb9a3a918f51e3 (patch)
treeb5f908b7259c42d064b69e4003eabc11ceb745cb /unix.c
parentabf47171b19cb3eed19a83028c80f4d1e3c85fcb (diff)
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.
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c1
1 files changed, 1 insertions, 0 deletions
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);
}