[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#513460: marked as done ("procfs stores process name in a truncated form in /proc/<pid>/stat")



Your message dated Sun, 31 May 2009 22:50:36 +0100
with message-id <1243806636.14399.135.camel@deadeye>
and subject line Re: "procfs stores process name in a truncated form in /proc/<pid>/stat"
has caused the Debian Bug report #513460,
regarding "procfs stores process name in a truncated form in /proc/<pid>/stat"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
513460: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513460
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: bash-completion
Severity: normal
Tags: patch

killall expects only the command name without arguments or path of the process to kill, e.g. if you want to kill the process with the command line "/usr/bin/dbus-daemon --system", you would have to do "killall dbus-daemon". However, bash_completion for killall tries to find matches using the complete command line.

The following patch addresses this issue by using "ps axo comm" instead of "ps axo command".

diff -u bash-completion.orig/bash_completion bash-completion/bash_completion
--- bash-completion.orig/bash_completion        2008-07-05 15:55:03.000000000 +0200
+++ bash-completion/bash_completion     2008-09-02 14:31:25.000000000 +0200
@@ -947,7 +947,7 @@
 	if [ $COMP_CWORD -eq 1 ] && [[ "$cur" == -* ]]; then
 		_signals
 	else
-		COMPREPLY=( $( compgen -W '$( command ps axo command | \
+		COMPREPLY=( $( compgen -W '$( command ps axo comm | \
 			      sed -ne "1d; s/^\[\?\([^-][^] ]*\).*$/\1/p" | \
 			      sed -e "s/.*\///" )' -- $cur ) )
 	fi

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



--- End Message ---
--- Begin Message ---
Since this is a clone of the original bug, I will close it rather than
reassigning.

Ben.
-- 
Ben Hutchings
Logic doesn't apply to the real world. - Marvin Minsky

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: