diff options
author | Eric Wong <e@80x24.org> | 2016-05-21 05:27:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-21 05:30:10 +0000 |
commit | 57b18b44e1770b163aba55eacf53195a8305398e (patch) | |
tree | daae849408c649ab8aaa8cd100055de34873f7e2 /lib/PublicInbox/Daemon.pm | |
parent | 97d3489257811dad5381ca8b114d1b0c45554a20 (diff) | |
download | public-inbox-57b18b44e1770b163aba55eacf53195a8305398e.tar.gz |
This hopefully makes the intent of the code clearer, too. The the HTTP use of the numeric reference for getline caused problems in Git.pm, already.
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r-- | lib/PublicInbox/Daemon.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index 8de7ff24..dc810106 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -350,6 +350,7 @@ sub unlink_pid_file_safe_ish ($$) { return unless defined $unlink_pid && $unlink_pid == $$; open my $fh, '<', $file or return; + local $/ = "\n"; defined(my $read_pid = <$fh>) or return; chomp $read_pid; if ($read_pid == $unlink_pid) { |