[newlib-cygwin] Cygwin: cygserver: Drop -f option from ps in cygserver-config

Takashi Yano via Cygwin-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=964e62e481dac636f8af26bbe75a0237edde3aa7

commit 964e62e481dac636f8af26bbe75a0237edde3aa7
Author: Takashi Yano <[email protected]>
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-1QfbC9zU/[email protected]>
    Signed-off-by: Takashi Yano <[email protected]>

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."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.