Public bug reported: This does not happen on Fedora. Source code example pasted below.
ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: procps 1:3.3.9-1ubuntu2.2 Uname: Linux 3.16.0-031600-generic x86_64 NonfreeKernelModules: zfs zunicode zcommon znvpair zavl ApportVersion: 2.14.1-0ubuntu3.10 Architecture: amd64 Date: Tue Apr 21 17:13:07 2015 InstallationDate: Installed on 2014-09-22 (211 days ago) InstallationMedia: Ubuntu-Server 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.3) ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: procps UpgradeStatus: No upgrade log present (probably fresh install) modified.conffile..etc.sysctl.conf: [modified] mtime.conffile..etc.sysctl.conf: 2014-09-30T12:34:06.956063 ** Affects: procps (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug third-party-packages trusty ** Attachment added: "source code example shows problem" https://bugs.launchpad.net/bugs/1446909/+attachment/4380885/+files/test-pkill.c -- 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