about summary refs log tree commit homepage
path: root/lib/PublicInbox/IPC.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-20 07:38:00 +0500
committerEric Wong <e@80x24.org>2021-03-20 02:48:02 +0000
commit592daf02926f747bacaa85a1d1509374c7e66f11 (patch)
tree92703a8c49aed77aedea14c1c9b0795f3a7fff6e /lib/PublicInbox/IPC.pm
parent8d77e9e1ac618c5fb33492200ee50fd1b12a7b57 (diff)
downloadpublic-inbox-592daf02926f747bacaa85a1d1509374c7e66f11.tar.gz
This was causing errors in a mass keyword import patch
I'm working on.
Diffstat (limited to 'lib/PublicInbox/IPC.pm')
-rw-r--r--lib/PublicInbox/IPC.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm
index 1fa67d00..cf3723f7 100644
--- a/lib/PublicInbox/IPC.pm
+++ b/lib/PublicInbox/IPC.pm
@@ -177,6 +177,7 @@ sub ipc_worker_stop {
 # and writing to the same store
 sub ipc_lock_init {
         my ($self, $f) = @_;
+        $f // die 'BUG: no filename given';
         require PublicInbox::Lock;
         $self->{-ipc_lock} //= bless { lock_path => $f }, 'PublicInbox::Lock'
 }