System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to kill vi process

reemala
Occasional Advisor

Not able to kill vi process

When trying to open any file from one directory, it is not opening it. The vi process is going to un-interruptable state and does not allow to kill the process. This directory is an NFS mount from other system.

Now I want to kill the process.
Tried the following procedure to change the process state from un-interruptable to interruptable.

=========
As root:
=========
#dbx −k /vmunix /dev/mem
dbx>kps (scroll through the PID list to find the applicable PID)
dbx>set $pid=PIDNUM
dbx>p $pid (verify the correct PID is selected)
dbx>p thread.interruptible
0 <−−−Uninterruptible
dbx>a thread.interruptible=1
1 <−−−Interruptible, hence killable..
dbx>quit
=========================================

We are able to change the process state with the above procedure but not able to kill the vi process with 'kill $pid' command.

If we use 'kill -9 $pid' the process again going back to un-interruptable state but not able to kill it.

Please help

Thanks & regards,
4 REPLIES
Venkatesh BL
Honored Contributor

Re: Not able to kill vi process

It would have helped if you have done a 't' in the dbx session, so that we could have seen what its looping for.
reemala
Occasional Advisor

Re: Not able to kill vi process

Can you please give the details please.

What is this 't' and how do I give it.

Thanks & regards,
Martin
Venkatesh BL
Honored Contributor

Re: Not able to kill vi process

Invoke dbx (as you've done before) and set pid to the 'vi' process. and then type 't' or 'where' command ('t' is the alias for 'where'). This command will show all active procedures in the given thread.
jim owens_1
Valued Contributor

Re: Not able to kill vi process

A thread which is interruptible may still not process signals depending on what the kernel is doing.

You should use the dbx command from BLV and find the reason the vi is hung and fix that problem.

If you succeed in changing the flow of the kernel with dbx you will probably cause severe system corruption.