From b6e53098085532567a9e267be2b600a5e3cf6f99 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 29 May 2022 09:02:04 -0400 Subject: [PATCH] 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. --- scripts/core/functions.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1