Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #818 from livarcocc/file_descriptor_limit
Browse files Browse the repository at this point in the history
Fixes the file descriptor issue during restore on OSX
  • Loading branch information
Livar committed Jan 13, 2016
2 parents c8421dd + 9994b6b commit 2417f50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ header "Checking Pre-Reqs"

$REPOROOT/scripts/test/check-prereqs.sh

header "Adjusting file descriptors limit, if necessary"
# Increases the file descriptors limit for this bash. It prevents an issue we were hitting during restore
FILE_DESCRIPTOR_LIMIT=$( ulimit -n )
if [ $FILE_DESCRIPTOR_LIMIT -lt 512 ]
then
info "Increasing file description limit to 512"
ulimit -n 512
fi

header "Restoring Tools and Packages"

if [ ! -z "$OFFLINE" ]; then
Expand Down

0 comments on commit 2417f50

Please sign in to comment.