This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[procps-ng] Bug: pidof invokes /bin/ps instead of /bin/procps
- From: "matthew patton via cygwin" <cygwin at cygwin dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 1 Feb 2019 21:45:01 +0000 (UTC)
- Subject: [procps-ng] Bug: pidof invokes /bin/ps instead of /bin/procps
- References: <1898576293.1649697.1549057501800.ref@mail.yahoo.com>
- Reply-to: matthew patton <pattonme at yahoo dot com>
- Reply-to: matthew patton <pattonme at yahoo dot com>
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