]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Mark signal waiting IO as "never wait alone"
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 17 Aug 2018 08:34:02 +0000 (11:34 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 22 Aug 2018 10:46:30 +0000 (13:46 +0300)
This signal is being automatically moved to nested ioloops. It can't be the
only IO being waited, since there's no code that simply wants to wait for a
signal.

src/lib/lib-signals.c

index af2069aef6354201a2156f12d217fdf181010d3b..86b0f2777001b020f5be826c24baf06e54b61d09 100644 (file)
@@ -301,6 +301,7 @@ lib_signals_enable_delayed_hander(void)
        if (current_ioloop != NULL) {
                io_sig = io_add(sig_pipe_fd[0], IO_READ,
                        signal_read, NULL);
+               io_set_never_wait_alone(io_sig, TRUE);
        }
 }