diff options
author | Eric Wong <e@80x24.org> | 2016-02-28 11:28:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-28 11:30:33 +0000 |
commit | 2ac2023fa416e31189708c355db8728abbd9ef2c (patch) | |
tree | 4d9eed94def3dfc7b6d7c0c5cb86bb734c84173c /lib/PublicInbox/Config.pm | |
parent | 8f090c1ff5e4eea068f20b30f1f79144aae936a3 (diff) | |
download | public-inbox-2ac2023fa416e31189708c355db8728abbd9ef2c.tar.gz |
We can rely on timely auto-destruction based on reference counting; reducing the chance of redundant close(2) calls which may hit the wront FD. We do care about certain close calls (e.g. writing to a buffered IO handle) if we require error-checking for write-integrity. In other cases, let things go out-of-scope so it can be freed automatically after use.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 844f666e..b5116388 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -101,7 +101,6 @@ sub try_cat { if (open(my $fh, '<', $path)) { local $/; $rv = <$fh>; - close $fh; } $rv; } |