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 b3154f2 commit 13e6a8fCopy full SHA for 13e6a8f
1 file changed
scripts/build/setup/termux_setup_dotnet.sh
@@ -112,13 +112,9 @@ termux_setup_dotnet() {
112
113
termux_dotnet_kill() {
114
# when "dotnet build-server shutdown" is not enough
115
- local dotnet_process=$(pgrep dotnet)
116
- if [[ -n "$dotnet_process" ]]; then
117
- echo "WARN: Dangling process, forcibly killing"
118
- local pid
119
- for pid in ${dotnet_process}; do
120
- echo "${pid}: $(cat /proc/${pid}/cmdline | tr '\0' ' ')"
121
- kill "${pid}"
122
- done
123
- fi
+ local dotnet_process
+ dotnet_process="$(pgrep -a dotnet)" || return 0
+ echo "WARN: Dangling process, forcibly killing"
+ echo "${dotnet_process}"
+ pkill dotnet || :
124
}
0 commit comments