diff options
author | Eric Wong <e@80x24.org> | 2021-03-24 14:23:32 +0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-24 23:01:19 +0000 |
commit | 55dabf7d68b57aa27d862c1036f0c2ade4edb1bc (patch) | |
tree | 46bd02bea61095799c9ad4a8bbd9f6fcf0a2f003 /lib/PublicInbox/LeiStore.pm | |
parent | c5b52ce9b026e0a1cd5c32ffade1f08e544f4cdb (diff) | |
download | public-inbox-55dabf7d68b57aa27d862c1036f0c2ade4edb1bc.tar.gz |
We'll prioritize the last two components of the path name ("lei/store") since that's how I often refer to the on-disk location. Then, show the XDG_DATA_HOME it belongs to in case a user changes HOME or XDG_* for testing purposes.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r-- | lib/PublicInbox/LeiStore.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index fa03f93c..1311ad46 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -329,11 +329,13 @@ sub ipc_atfork_child { sub write_prepare { my ($self, $lei) = @_; unless ($self->{-ipc_req}) { - $self->ipc_lock_init($lei->store_path . '/ipc.lock'); + my $d = $lei->store_path; + $self->ipc_lock_init("$d/ipc.lock"); + substr($d, -length('/lei/store'), 10, ''); # Mail we import into lei are private, so headers filtered out # by -mda for public mail are not appropriate local @PublicInbox::MDA::BAD_HEADERS = (); - $self->ipc_worker_spawn('lei_store', $lei->oldset, + $self->ipc_worker_spawn("lei/store $d", $lei->oldset, { lei => $lei }); } $lei->{sto} = $self; |