This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/68980] [6 regression] ps -o cmd in gotest isn't portable
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Dec 2015 15:14:28 +0000
- Subject: [Bug go/68980] [6 regression] ps -o cmd in gotest isn't portable
- Auto-submitted: auto-generated
- References: <bug-68980-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68980
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'd actually say that ps -o pid,ppid,comm would be better even on Linux, I
think it really wants to look for the process named sleep, rather than some
arbitrary command with sleep just as an argument or path component etc.
There is a risk that you kill some other command, that would say have arguments
/usr/bin/some_command sleep 12345
if $alarmpid is 12345.