diff options
author | Eric Wong <e@80x24.org> | 2021-01-13 19:06:17 -1200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-14 23:14:08 +0000 |
commit | b5607f3185f956f23dee025255a84b75c79f8e62 (patch) | |
tree | 5d9e79da427e90812b7113ebff8f0df30234ecf6 /lib | |
parent | b552bb9150775fe4b5a9eb76803e8859c647be92 (diff) | |
download | public-inbox-b5607f3185f956f23dee025255a84b75c79f8e62.tar.gz |
This matches existing -httpd/-nntpd/-imapd daemon behavior. From what I can recall, it is less racy for the process doing bind(2) to unlink it if stale.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 2889fa76..7a1df0bb 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -789,7 +789,6 @@ sub lazy_start { local $quit = sub { $exit_code //= shift; my $listener = $l or exit($exit_code); - unlink($path) if defined($path); # closing eof_w triggers \&noop wakeup $eof_w = $l = $path = undef; $listener->close; # DS::close |