freebsd-ports/multimedia/ytfzf/files/patch-ytfzf
2021-07-01 01:55:12 +02:00

11 lines
374 B
Text

--- ytfzf.orig 2021-06-26 05:44:53 UTC
+++ ytfzf
@@ -1095,7 +1095,7 @@ play_url () {
session_is_running () {
session_count=0
while read -r pid; do
- [ -d /proc/"$pid" ] && session_count=$(( session_count + 1 ))
+ kill -0 "$pid" 2>/dev/null && session_count=$(( session_count + 1 ))
done < "$pid_file"
[ $session_count -eq 1 ] && return 1 || return 0
}