Public bug reported:

Ubuntu version: Ubuntu 12.04.1 LTS

While troubleshooting an issue with ddclient on my dad's ubuntu box I ran into 
the following issue.
Upstart was able to start the daemon just fine, however stopping it was 
unsuccessful. Also, trying to kill the daemon with 'killall ddclient' was 
unsuccessful. On my own Debian server this does not happen and everything works 
as expected.

After digging a little deeper I found out that this was caused by
incorrect information in /proc/[pid]/stat. According to
http://www.kernel.org/doc/man-pages/online/pages/man5/proc.5.html it
should show the filename of the executable in parenthesis. However,
ddclient appends some information to it's own process name at runtime.
In Ubuntu, this information is also shown in /proc/[pid]/stat. The final
result is an inconsistency between the filename of the executable and
the information in /proc/[pid]/stat, causing problems with init scripts
and other forms of process management.

In short: If a process changes it's name at runtime the info in
/proc/[pid]/stat changes as well while kernel documentation states it
should always reflect the filename of the executable.

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: bot-comment

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1089348

Title:
  /proc/[pid]/stat executable name issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1089348/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to