summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-06 01:30:35 +0100
committerGitHub <noreply@github.com>2018-03-06 01:30:35 +0100
commitb98297ba59d43470680c9d3f21994214c63bd005 (patch)
treee743bbe02f42935ea8bca23e835602b4a877dbc0 /Bugzilla
parentb588eea89a5cdd24ee5a3f00a12e71b8a096660e (diff)
downloadbugzilla-b98297ba59d43470680c9d3f21994214c63bd005.tar.gz
bugzilla-b98297ba59d43470680c9d3f21994214c63bd005.tar.xz
Bug 1441181 - Step 7 - Fix bug in catch_signal()
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DaemonControl.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/DaemonControl.pm b/Bugzilla/DaemonControl.pm
index 1de8350c1..05aaf8130 100644
--- a/Bugzilla/DaemonControl.pm
+++ b/Bugzilla/DaemonControl.pm
@@ -49,7 +49,10 @@ sub catch_signal {
my $signal = IO::Async::Signal->new(
name => $name,
on_receipt => sub {
+ my ($self) = @_;
+ my $l = IO::Async::Loop->new;
$signal_f->done(@done);
+ $l->remove($self);
}
);
$signal_f->on_cancel(