use PublicInbox::SQLiteUtil;
use PublicInbox::Isearch;
use PublicInbox::MultiGit;
-use PublicInbox::Spawn ();
+use PublicInbox::Spawn qw(run_wait);
use PublicInbox::Search;
use PublicInbox::SearchIdx qw(prepare_stack is_ancestor is_bad_blob
update_checkpoint);
if ($git_midx && ($opt->{'multi-pack-index'} // 1)) {
my $cmd = $self->git->cmd('multi-pack-index');
push @$cmd, '--no-progress' if ($opt->{quiet}//0) > 1;
+ push @$cmd, 'write';
my $lk = $self->lock_for_scope;
- system(@$cmd, 'write');
+ run_wait $cmd;
# ignore errors, fairly new command, may not exist
}
$self->parallel_init($self->{indexlevel});
use PublicInbox::Eml;
use PublicInbox::InboxWritable qw(eml_from_path);
use PublicInbox::Import;
+use PublicInbox::Spawn qw(run_wait);
my $help = <<'EOF';
usage: public-inbox-edit -m MESSAGE-ID [--all] [INBOX_DIRS]
# run the editor, respecting spaces/quote
retry_edit:
- if (system(qw(sh -c), $editor.' "$@"', $editor, $edit_fn)) {
+ if (run_wait [qw(sh -c), $editor.' "$@"', $editor, $edit_fn]) {
if (!(-t STDIN) && !$opt->{force}) {
die "E: $editor failed: $?\n";
}