]> jfr.im git - irc/UndernetIRC/iauthd-c.git/commitdiff
iauth_core: EOF on stdin should be a clean exit
authorMichael Poole <redacted>
Sun, 7 Mar 2021 14:08:21 +0000 (09:08 -0500)
committerMichael Poole <redacted>
Sun, 7 Mar 2021 14:08:21 +0000 (09:08 -0500)
modules/iauth_core.c

index 19b3ed01dfd99021d4f30e27dd6e047d46201357..8790515eefd4a6f41516ec6784d1601103ea84c5 100644 (file)
@@ -795,6 +795,7 @@ static void iauth_read(evutil_socket_t fd, short events, void *iauth_in_v)
         return;
     }
     if (res == 0) {
+        clean_exit = 1;
         log_message(log_core, LOG_INFO, "Terminating due to EOF on input");
         event_base_loopbreak(ev_base);
         return;