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

Fixes the file descriptor issue during restore on OSX #818

Merged
merged 1 commit into from
Jan 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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