[procps-ng] Bug: pidof invokes /bin/ps instead of /bin/procps

matthew patton via cygwin cygwin@cygwin.com
Fri Feb 1 21:45:00 GMT 2019


The 'pidof' command doesn't work with Cygwin's very crippled version of /bin/ps. Specifically 'ps' doesn't understand '-o' nations whereas 'procps' does.

Either 'pidof' needs to account for the Cygwin 'ps' not being remotely as capable as the Linux 'ps' command and alter invocation accordingly, or better yet just #IFDEF out 'ps' in favor of invoking 'procps'. They are packaged together, afterall...

A alternate but rather heavy-handed solution might be that when the procps-ng package is installed it moves /bin/ps out of the way and replaces it.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list