We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a49d9 commit 65a3b77Copy full SHA for 65a3b77
1 file changed
scripts/build/setup/termux_setup_dotnet.sh
@@ -112,9 +112,16 @@ termux_setup_dotnet() {
112
113
termux_dotnet_kill() {
114
# when "dotnet build-server shutdown" is not enough
115
+ # lingering processes inherit fd 5 (flock), blocking the next build
116
local dotnet_process
117
dotnet_process="$(pgrep -a dotnet)" || return 0
118
echo "WARN: Dangling process, forcibly killing"
119
echo "${dotnet_process}"
- pkill dotnet || :
120
+ pkill -9 dotnet || :
121
+ # wait for processes to exit so fd 5 (flock) is released
122
+ local i
123
+ for i in $(seq 1 10); do
124
+ pgrep dotnet > /dev/null 2>&1 || break
125
+ sleep 1
126
+ done
127
}
0 commit comments