[newlib-cygwin] Cygwin: cygserver: Drop -f option from ps in cygserver-config
Takashi Yano
tyan0@sourceware.org
Fri May 2 11:29:04 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=964e62e481dac636f8af26bbe75a0237edde3aa7
commit 964e62e481dac636f8af26bbe75a0237edde3aa7
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date: Fri May 2 20:04:26 2025 +0900
Cygwin: cygserver: Drop -f option from ps in cygserver-config
... because cygserver-config no longer works due to the behaviour
change of -f option in 'ps'.
Addresses: https://cygwin.com/pipermail/cygwin/2025-April/258086.html
Fixes: 1ce9756ee61e ("Cygwin: ps -f: output command line")
Reported-by: Christian Lupien <Christian.Lupien@USherbrooke.ca>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diff:
---
winsup/cygserver/cygserver-config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygserver/cygserver-config b/winsup/cygserver/cygserver-config
index 373bfd24d..abda18644 100755
--- a/winsup/cygserver/cygserver-config
+++ b/winsup/cygserver/cygserver-config
@@ -89,7 +89,7 @@ _sys="`uname`"
_nt=`expr "${_sys}" : "CYGWIN_NT"`
# Check for running cygserver processes first.
-if ps -ef | grep -v grep | grep -q ${service_name}
+if ps -e | grep -v grep | grep -q ${service_name}
then
echo
echo "There is a cygserver (${service_name}) already running. Nothing to do, apparently."
More information about the Cygwin-cvs
mailing list