Operating System - HP-UX
1834022 Members
2279 Online
110063 Solutions
New Discussion

How To Kill A Stopped Process

 
Soumen Ghosh
Occasional Contributor

How To Kill A Stopped Process

Suppose, I create a pthread in a process and the thread calls pthread_suspend immediately. Due to faulty programming, the thread never gets a pthread_continue call ever. The main or primary thread exits by calling pthread_exit (). Now, the remaining thread remains suspended and gets never scheduled. How can I kill the process? 'kill' command doesn't work here. Is it necessary to have root access to kill the process?
Learn & Grow
1 REPLY 1
glenn henley
Occasional Advisor

Re: How To Kill A Stopped Process

I far as I'm aware it all lives in the same address space and so using kill should wipe out all the threads.

Have you tried 'kill -9'?

Glenn
The only people that never make mistakes, are the people that never try anything.