diff options
author | Eric Wong <e@80x24.org> | 2021-09-22 02:24:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-22 05:21:18 +0000 |
commit | 30cc504b0e88302588ca26e91b8005ec62d5d6f2 (patch) | |
tree | 64b7357f5517d124d96d53220a233cbb17aea680 /lib/PublicInbox | |
parent | 6f1cf49c96b0e6d628bcd90487ba2e0820351bba (diff) | |
download | public-inbox-30cc504b0e88302588ca26e91b8005ec62d5d6f2.tar.gz |
It's needless noise and misleads users reading "ps" into thinking there's more workers when there's only one.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/IPC.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm index add5f3df..1c699d76 100644 --- a/lib/PublicInbox/IPC.pm +++ b/lib/PublicInbox/IPC.pm @@ -353,7 +353,8 @@ sub _wq_worker_start ($$$$) { keys %{delete($self->{-wq_workers}) // {}}; $SIG{$_} = 'IGNORE' for (qw(PIPE)); $SIG{$_} = 'DEFAULT' for (qw(TTOU TTIN TERM QUIT INT CHLD)); - local $0 = "$self->{-wq_ident} $self->{-wq_worker_nr}"; + local $0 = $one ? $self->{-wq_ident} : + "$self->{-wq_ident} $self->{-wq_worker_nr}"; # ensure we properly exit even if warn() dies: my $end = PublicInbox::OnDestroy->new($$, sub { exit(!!$@) }); eval { |