X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FParentPipe.pm;h=538b5632c623851aebaed6662238ac3406a9b220;hb=94096cab6cd5e00c8a36a4a2667bdb9acf43d01f;hp=f62f011bbe3abf53b98a3be33c6b64d8033a3183;hpb=58c0333adbdd9f5f82309cb6eef3c379f0ff064e;p=public-inbox.git diff --git a/lib/PublicInbox/ParentPipe.pm b/lib/PublicInbox/ParentPipe.pm index f62f011b..538b5632 100644 --- a/lib/PublicInbox/ParentPipe.pm +++ b/lib/PublicInbox/ParentPipe.pm @@ -5,17 +5,13 @@ # notified if the master process dies. package PublicInbox::ParentPipe; use strict; -use warnings; -use base qw(PublicInbox::DS); -use fields qw(cb); +use parent qw(PublicInbox::DS); use PublicInbox::Syscall qw(EPOLLIN EPOLLONESHOT); sub new ($$$) { my ($class, $pipe, $worker_quit) = @_; - my $self = fields::new($class); + my $self = bless { cb => $worker_quit }, $class; $self->SUPER::new($pipe, EPOLLIN|EPOLLONESHOT); - $self->{cb} = $worker_quit; - $self; } # master process died, time to call worker_quit ourselves