From 0b3394d7bed54e50661d6d499e2532c3bd661b0a Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Sat, 19 Oct 2024 15:04:59 +0300 Subject: [PATCH] added check ulimit for ESYNC --- data_from_portwine/scripts/functions_helper | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index d6a19a7e..20b8b675 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2586,7 +2586,11 @@ start_portwine () { echo "${PW_WINE_USE}" > "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/.wine_ver" - if [[ "${PW_NO_ESYNC}" == 1 ]] + ULIMIT_HN=$(ulimit -Hn) + if [[ $ULIMIT_HN -lt 524288 ]] ; then + print_warning "ESYNC dont work! (ulimit -Hn $ULIMIT_HN < 524288)" + export WINEESYNC="0" + elif [[ "${PW_NO_ESYNC}" == 1 ]] then export WINEESYNC="0" else export WINEESYNC="1" fi