• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 109
  • Last Modified:

kill not working

saiganesh@LAPTOP-EJBON1NM ~
$ pwd
/home/saiganesh

saiganesh@LAPTOP-EJBON1NM ~
$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
    14072   16116   14072      16120  pty1      197609 23:24:55 /usr/bin/ps
S   14584       1   14584      10368  pty0      197609 22:48:56 /usr/bin/man
S   11244       1   11244      14032  pty0      197609 21:50:41 /usr/bin/cat
S    4288   14584   14584      13752  pty0      197609 22:48:56 /usr/bin/less
    16116   14124   16116       6224  pty1      197609 23:24:48 /usr/bin/bash
    14124       1   14124      14124  ?         197609 23:24:48 /usr/bin/mintty

saiganesh@LAPTOP-EJBON1NM ~
$ kill 16116

saiganesh@LAPTOP-EJBON1NM ~
$

Open in new window


can you please advise why kill not working as above?
0
gudii9
Asked:
gudii9
4 Solutions
 
A Q ChoudaryJunior Linux EngineerCommented:
You also can use any of three:
kill -9 16116
pkill 16116
pkill -9 16116
definately it will work for you
0
 
Prabhin MPEngineer-TechOPSCommented:
Hi ,
Use kill -9 <pid>
0
 
ozoCommented:
As you did not specify which signal to send, a SIGTERM was sent
see
man kill
If no traps have been set, a bash shell in interactive mode normally ignores SIGTERM
see
man bash
If you want bash to do something with SIGTERM, you can set up a trap for it, or if you want to tell it something else, you can send it a different signal.
0
 
joolsCommented:
I think the default kill is something like a signal 15 (dont have a system here to check) which is like asking it nicely to leave the premises.

You want to do the -9 (mentioned before) to pull the rug from under it and kick it out the door*.

* some processes may still appear to hang if they are still waiting IO.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now