]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/IMAP.pm
daemon: use per-listener SIG{__WARN__} callbacks
[public-inbox.git] / lib / PublicInbox / IMAP.pm
index 605c5e515110d1b0f1a077be70174149a78b22de..2be1b763f30a89f12e84a8c1fa0339026cf3937d 100644 (file)
@@ -1186,7 +1186,7 @@ sub out ($$;@) {
 # callback used by PublicInbox::DS for any (e)poll (in/out/hup/err)
 sub event_step {
        my ($self) = @_;
-
+       local $SIG{__WARN__} = $self->{imapd}->{warn_cb};
        return unless $self->flush_write && $self->{sock} && !$self->{long_cb};
 
        # only read more requests if we've drained the write buffer,