]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ParentPipe.pm
ds: remove fields.pm usage
[public-inbox.git] / lib / PublicInbox / ParentPipe.pm
index f62f011bbe3abf53b98a3be33c6b64d8033a3183..538b5632c623851aebaed6662238ac3406a9b220 100644 (file)
@@ -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