I did some extra testing on this bug today. I compiled and installed the latest procps-ng (3.3.10) on Ubuntu 14.04 i386, and it sees the problem:
greearb@v-ubuntu-14-04-i386:~$ ./test-pkill System command failed: ERROR: system command "pkill -f my-funky-cmdline" terminated with signal 15 my-system rv: 15 greearb@v-ubuntu-14-04-i386:~$ pkill --version pkill from procps-ng 3.3.10 greearb@v-ubuntu-14-04-i386:~$ But, exact same procps and test-pkill code works fine on Fedora-20: [greearb@v-f20-32 ~]$ ./test-pkill System command failed: ERROR: system command "pkill -f my-funky-cmdline" had return code: 1 my-system rv: 256 [greearb@v-f20-32 ~]$ pkill --version pkill from procps-ng 3.3.10 [greearb@v-f20-32 ~]$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1446909 Title: pkill kills self when called from C program To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1446909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs