Skip to content

Commit

Permalink
ports-mgmt/synth: Fix open file descriptor issue for purge-distfiles cmd
Browse files Browse the repository at this point in the history
The purge-distfiles command reads the distinfo file of every port in the
tree, but unfortunately never closed the file descriptor when the scan
was complete.  This resulted in 26,000+ open file descriptors, possibly
exceeding the host server's FD limit.  (issue #70)
  • Loading branch information
jrmarino committed Jan 20, 2017
1 parent 2fcaee8 commit 3c87673
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ports-mgmt/synth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

PORTNAME= synth
PORTVERSION= 1.66
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= ports-mgmt

Expand All @@ -19,6 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libncurses.a:devel/ncurses \
USES= ada:6
USE_GITHUB= yes
GH_ACCOUNT= jrmarino
GH_TAGNAME= 4d9f5ea

GPR= ${LOCALBASE}/lib/gnat
MAKE_ENV= NCURSES_LINK=static
Expand Down
6 changes: 3 additions & 3 deletions ports-mgmt/synth/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1481720544
SHA256 (jrmarino-synth-v1.66_GH0.tar.gz) = 4edd974e5ed091a1b629e4c9ff7507923156aa749b9664ca7f727e220931bc2b
SIZE (jrmarino-synth-v1.66_GH0.tar.gz) = 137564
TIMESTAMP = 1484861755
SHA256 (jrmarino-synth-v1.66-4d9f5ea_GH0.tar.gz) = 7b3eba1c84b9f10db9d82b61fd29d217d17edb5da51f747b07a4daf17214b56e
SIZE (jrmarino-synth-v1.66-4d9f5ea_GH0.tar.gz) = 137605

0 comments on commit 3c87673

Please sign in to comment.