Kill #### but process still there?

Al Lelopath

I would expect to see nothing in the 3rd command below, but clearly my expectations are incorrect. Why?

$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  joeuser   2339 F.... pulseaudio
/dev/snd/controlC2:  joeuser   2339 F.... pulseaudio
/dev/snd/pcmC0D7p:   joeuser   2339 F...m pulseaudio
/dev/snd/pcmC2D0c:   joeuser   2339 F...m pulseaudio
/dev/snd/pcmC2D0p:   joeuser   2339 F...m pulseaudio
$ kill 2339
$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  joeuser   2339 F.... pulseaudio
/dev/snd/controlC2:  joeuser   2339 F.... pulseaudio
/dev/snd/pcmC0D7p:   joeuser   2339 F...m pulseaudio
/dev/snd/pcmC2D0c:   joeuser   2339 F...m pulseaudio
/dev/snd/pcmC2D0p:   joeuser   2339 F...m pulseaudio
ubfan1

The kill command just sends a signal to the process, and the default signal (when you don't select one), is trapped by the process and maybe ignored or handled in some other way. Use signal -9 , which is the non-maskable signal, to ungracefully kill the process. You might check any documentation of the process to possibly find a signal which will tell the process to clean up and terminate, but -9 is the usual "just kill it" approach.


kill -9 2339

should kill it since you own the process. or from the names for the signals (list from kill -l)

kill SIGKILL 2339

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Check if process is running and kill it

分類Dev

kill unresponsive process

分類Dev

Kill Local Process

分類Dev

Capturing kill code of go process?

分類Dev

How to kill a process on a port on ubuntu

分類Dev

Kill system process in Thread ruby

分類Dev

Kill child process created with fork

分類Dev

How to kill process of another user?

分類Dev

How to kill a daemon process in linux?

分類Dev

Kill my process if the other process is killed

分類Dev

How to kill a child process started by process in java?

分類Dev

How to kill a running process using ansible?

分類Dev

Trying to find and kill a process by PowerShell script

分類Dev

Cannot Kill a process that has a thread started

分類Dev

How to kill process if thread encounters exception?

分類Dev

Kill process spawned by ssh when ssh dies

分類Dev

Global hotkey to kill a process in Windows 7

分類Dev

Global hotkey to kill a process in Windows 7

分類Dev

Attach, Detach and Kill a process in Screen with a bash script

分類Dev

Cannot kill a process after waking it up

分類Dev

python subprocess.Popen kill process with child process

分類Dev

Can `kill` in bash send a signal only to a single process whose process group has other process(es)?

分類Dev

aiohttp内のos.killとprocess.terminate

分類Dev

when parent process is killed by 'kill -9', how to terminate child processes

分類Dev

Infinite number of process spawns despite wait and kill (bash)

分類Dev

Visual Studio made a process I can't kill

分類Dev

Windows - kill a process that stays ontop of all other windows

分類Dev

More elegant way to selecting python popen process.kill() or process.terminate()

分類Dev

How can I kill a child process without the child process 'exit' event triggering?

Related 関連記事

  1. 1

    Check if process is running and kill it

  2. 2

    kill unresponsive process

  3. 3

    Kill Local Process

  4. 4

    Capturing kill code of go process?

  5. 5

    How to kill a process on a port on ubuntu

  6. 6

    Kill system process in Thread ruby

  7. 7

    Kill child process created with fork

  8. 8

    How to kill process of another user?

  9. 9

    How to kill a daemon process in linux?

  10. 10

    Kill my process if the other process is killed

  11. 11

    How to kill a child process started by process in java?

  12. 12

    How to kill a running process using ansible?

  13. 13

    Trying to find and kill a process by PowerShell script

  14. 14

    Cannot Kill a process that has a thread started

  15. 15

    How to kill process if thread encounters exception?

  16. 16

    Kill process spawned by ssh when ssh dies

  17. 17

    Global hotkey to kill a process in Windows 7

  18. 18

    Global hotkey to kill a process in Windows 7

  19. 19

    Attach, Detach and Kill a process in Screen with a bash script

  20. 20

    Cannot kill a process after waking it up

  21. 21

    python subprocess.Popen kill process with child process

  22. 22

    Can `kill` in bash send a signal only to a single process whose process group has other process(es)?

  23. 23

    aiohttp内のos.killとprocess.terminate

  24. 24

    when parent process is killed by 'kill -9', how to terminate child processes

  25. 25

    Infinite number of process spawns despite wait and kill (bash)

  26. 26

    Visual Studio made a process I can't kill

  27. 27

    Windows - kill a process that stays ontop of all other windows

  28. 28

    More elegant way to selecting python popen process.kill() or process.terminate()

  29. 29

    How can I kill a child process without the child process 'exit' event triggering?

ホットタグ

アーカイブ