aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index a41f9c3a..2569c28e 100644
--- a/unix.c
+++ b/unix.c
@@ -304,6 +304,9 @@ 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);
+ if (irc->sendbuffer) {
+ unused = write(irc->fd, irc->sendbuffer, strlen(irc->sendbuffer));
+ }
unused = write(irc->fd, message, len);
}