summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangbiao <biao716.wang@samsung.com>2024-08-19 16:56:31 +0900
committerwangbiao <biao716.wang@samsung.com>2024-08-19 16:56:42 +0900
commitef24b9ea0f2d3aea25ab4d559e8de99713dbe3f2 (patch)
treefdba075eb131409b453bb24ef290b46fad35f718
parent1748d60179c340d00113ae50ac48b80d9afc1fca (diff)
downloadbuild-ef24b9ea0f2d3aea25ab4d559e8de99713dbe3f2.tar.gz
build-ef24b9ea0f2d3aea25ab4d559e8de99713dbe3f2.tar.bz2
build-ef24b9ea0f2d3aea25ab4d559e8de99713dbe3f2.zip
build: use ulimit -d instead of ulimit -v
Refer to: https://github.com/openSUSE/obs-build/commit/52cec996150a0050ad0c873cc4fc750a35fd460c Change-Id: Ia218f25524076fa0c68163cec8305f1d32a255de Signed-off-by: wangbiao <biao716.wang@samsung.com>
-rw-r--r--build2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index 1380265..ec07d23 100644
--- a/build
+++ b/build
@@ -563,7 +563,7 @@ setmemorylimit() {
;;
esac
done < <(cat /proc/meminfo) # cat for proc stuff
- ulimit -v $limit
+ ulimit -d $limit
echo "Memory limit set to ${limit}KB"
}