Bug#588249: libproc-processtable-perl: length of fname field in ProcessTable is insufficient

Chris Butler chrisb at debian.org
Wed Jul 7 08:24:50 UTC 2010


On Wed, Jul 07, 2010 at 09:52:31AM +0200, Salvatore Bonaccorso wrote:
> So as it is not really caused by fname in Proc::ProcessTable I think
> this is more like a wishlist, as it is by 'limitation' in the linux
> kernel.
> 
> Comments?

I agree with your assessment.. the behaviour certainly seems consistent with
"ps":

$ ps ax -o fname
[...]
udevd
hald-add
wpa_supp
[...]

It sounds like there's a bug in 'mon' in that case, it probably shouldn't be
using "fname", or at least be expecting it to be truncated.

The value returned by Proc::ProcessTable also includes "exec", the full path
to the executable (available for root and the owner of the process). It may
be better if mon used that, if possible. This would also avoid a process
with the same filename (but different path) from matching erroneously.

-- 
Chris Butler <chrisb at debian.org>
  GnuPG Key ID: 4096R/49E3ACD3





More information about the pkg-perl-maintainers mailing list