]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-watch
watch: wire up IMAP IDLE reapers to DS
[public-inbox.git] / script / public-inbox-watch
index b6d545adad782c81cecb92c49e3dbb7578575546..ae7b70be355f056a0201f51a66bb089f2562371d 100755 (executable)
@@ -22,7 +22,11 @@ if ($watch_md) {
                $watch_md->quit if $watch_md;
                $watch_md = undef;
        };
-       my $sig = { HUP => $reload, USR1 => $scan };
+       my $sig = {
+               HUP => $reload,
+               USR1 => $scan,
+               CHLD => \&PublicInbox::DS::enqueue_reap,
+       };
        $sig->{QUIT} = $sig->{TERM} = $sig->{INT} = $quit;
 
        # --no-scan is only intended for testing atm, undocumented.