Package: psmisc
Version: 22.9-1
Severity: important

The option -k says that fuser should kill the given processes but it does not.

:; sleep 400 < /dev/snd/pcmC0D0p &
[3] 14175
:; fuser  -k /dev/snd/pcmC0D0p
/dev/snd/pcmC0D0p:   13908
:; fuser  -k /dev/snd/pcmC0D0p
/dev/snd/pcmC0D0p:   13908
:; fuser  -ik /dev/snd/pcmC0D0p
/dev/snd/pcmC0D0p:   13908
:; kill 13908
:; 
[2]-  Terminated              ( sleep 400 > /dev/snd/pcmC0D0p )

The code in kill_matched_proc says not to kill if pptr->proc_type == 
PTYPE_NORMAL.
Why is this? fuser -k is designed to kill processes.

I removed the first "continue" in kill_matched_proc and now fuser kills 
processes.

:; sleep 400 < /dev/snd/pcmC0D0p &
[1] 14223
:; src/fuser -k /dev/snd/pcmC0D0p 
/dev/snd/pcmC0D0p:   14223
[1]+  Killed                  sleep 400 < /dev/snd/pcmC0D0p


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

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages psmisc depends on:
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libncurses5               5.7+20090803-2 shared libraries for terminal hand

psmisc recommends no packages.

psmisc suggests no packages.

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to