]> arthur.barton.de Git - ngircd-alex.git/commit
Testsuite: make getpid.sh work even when run as root
authorAlexander Barton <alex@barton.de>
Sat, 30 Jul 2011 16:47:58 +0000 (18:47 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 30 Jul 2011 16:47:58 +0000 (18:47 +0200)
commit9f3690c39c2bd7cefbed8e3ea1f9519dd25d35c8
tree14ebf6127560b7fcb276d3b4426e0f3c9f47a3c3
parentb7780e3f2acb989fab7d98cb79d5f5dff65accbc
Testsuite: make getpid.sh work even when run as root

Use ps(1) flag "-a" (as well as "-f"):
"Select all processes except both session leaders (see getsid(2)) and
processes not associated with a terminal."

Thanks to Götz Hoffart for reporting this problem!
src/testsuite/getpid.sh