• C

Kill on uxix, with pid need an answer VERY FAST

I have forked off some processes, and need to kill them.  I have the pid, so how do I kill them?

Thanks in advance
c96jgAsked:
Who is Participating?
 
jhanceConnect With a Mentor Commented:
Use kill(). The syntax of the call is:

kill(pid, signum);

pid is the pid of the process to kill.  signum is how you want to signal the process.  If signum = 9, then it's an unconditional termination.  It's usually better to install a signal handler in your process so that it can terminate in an orderly fashion.
0
 
thiamwahCommented:
check out kill signum 3, 6, 9.
Basically it is safer to use the lower ones first rather then 9 straightaway.
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.

All Courses

From novice to tech pro — start learning today.