From: Chris Koeritz Date: Sun, 29 May 2022 13:02:04 +0000 (-0400) Subject: psfind working to get windows pid, but... X-Git-Tag: 2.140.136^2~55 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=b6e53098085532567a9e267be2b600a5e3cf6f99;p=feisty_meow.git psfind working to get windows pid, but... this winpid is not working in ps tools to lookup a process. need to dig into this further, but hopefully the zap_fallout script will start working again. may have to add a flag to psfind that tells it to return either cygwin pids for use in ps or winpids for use in taskkill, if the former is actually a usable pid value in ps. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 6083bc71..8fdb80d5 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -376,6 +376,11 @@ if [ -z "$skip_all" ]; then # special case for windows. ps | head -1 for curr in $p; do +#hmmm: currently not working right for windows cygwin. we're getting proper +# winpids out of the list now, but not able to use them in ps? +# should i be keeping the weirdo pid that we were getting in column 1 and +# use that, except when talking to taskkill? +# need further research. ps -W -p $curr | tail -n +2 done else