]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ParentPipe.pm
ds: set event flags directly at initialization
[public-inbox.git] / lib / PublicInbox / ParentPipe.pm
index a9f05fc14a9fa86f7b4c18868b13ef4f7bba6e7c..ccc0815ea46d5400ba591d2457aba220a9b2c2f1 100644 (file)
@@ -10,9 +10,8 @@ use fields qw(cb);
 sub new ($$$) {
        my ($class, $pipe, $cb) = @_;
        my $self = fields::new($class);
-       $self->SUPER::new($pipe);
+       $self->SUPER::new($pipe, PublicInbox::DS::EPOLLIN());
        $self->{cb} = $cb;
-       $self->watch_read(1);
        $self;
 }