]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiInput.pm
lei mark: command for (un)setting keywords and labels
[public-inbox.git] / lib / PublicInbox / LeiInput.pm
index 859fdb110636f9847136e9724161180e3e5a3765..6ad5777207fdf1ad1a13547ec2b7125dc70200ac 100644 (file)
@@ -45,7 +45,7 @@ error reading $name: $!
        }
 }
 
-sub prepare_inputs {
+sub prepare_inputs { # returns undef on error
        my ($self, $lei, $inputs) = @_;
        my $in_fmt = $lei->{opt}->{'in-format'};
        if ($lei->{opt}->{stdin}) {
@@ -103,4 +103,13 @@ sub prepare_inputs {
        $self->{inputs} = $inputs;
 }
 
+sub input_only_atfork_child {
+       my ($self) = @_;
+       my $lei = $self->{lei};
+       $lei->lei_atfork_child;
+       PublicInbox::IPC::ipc_atfork_child($self);
+       $lei->{auth}->do_auth_atfork($self) if $lei->{auth};
+       undef;
+}
+
 1;