Public bug reported:

Backgrounded process with input redirected from a pipe has wrong
information in /proc/<pid>/cmdline (it seems to contain the parent
process command line). So while the jobs listing shows correct command
line for the process, utilities such as ps do not. Can be reproduced as
follows:

$ mknod mypipe p
$ cat <mypipe &
[1] 4941
$ jobs -l
[1]+  4941 Running                 cat < mypipe &
$ ps -fp 4941
UID        PID  PPID  C STIME TTY          TIME CMD
stevens   4941  3131  0 12:30 pts/18   00:00:00 bash

ProblemType: Bug
Architecture: i386
Date: Mon Jun 20 12:27:20 2011
Dependencies:
 
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: linux None [modified: /var/lib/dpkg/info/linux.list]
PackageArchitecture: i386
ProcEnviron:
 
PATH=/home/username/bin:/opt/scada/../postgresql/bin:/opt/fg/bin:/opt/mmi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/scada/bin:/opt/ccm/bin
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-meta
Uname: Linux 2.6.24-19-generic i686

** Affects: linux-meta (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

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

Title:
  pipe-reader process has incorrect process cmdline

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/799583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to