0

I am trying to kill a process sublime_text using the kill -9 command. But the process is still there and so I am not able to open another instance of it.

 root@alwin-linux:~# ps aux|grep subl 

 root      3018  2.2  1.0 289008 61872 ?        Ds   12:30   5:27
 /opt/sublime_text/sublime_text 

 root   3037  0.0  0.2  65676 15364 ?        Sl   12:30   0:11
 /opt/sublime_text/plugin_host 3018 

 root      6702  0.0  0.0   4432   820 pts/1    S+   16:35   0:00 grep
 --color=auto subl 

 root@alwin-linux:~# kill -9 3018 

 root@alwin-linux:~# ps aux|grep subl 

 root      3018  2.2  1.0 289008

 61872 ?        Ds   12:30   5:27 /opt/sublime_text/sublime_text 

 root      3037  0.0  0.2  65676 15364 ? Sl   12:30   0:11
 /opt/sublime_text/plugin_host 3018  
 root      6705  0.0  0.0   4432   824 pts/1    S+   16:35   0:00 grep --color=auto subl
Alvar
  • 17,058
  • Using blockquotes and root?! You're really trying to make baby Jesus cry. – Oli Oct 17 '13 at 11:14
  • @Oli I don't understand – Happy Coder Oct 17 '13 at 11:16
  • We have a code formatting option that makes monospaced console output easier to read. And you're logged in as root. And running Sublime Text as root. – Oli Oct 17 '13 at 11:17
  • yeah I tried the code formatting, but it is making the code more messy. Also I am running the sublime as root. Is that an issue ?I am mounting one drive over SSHFS and editing the code there. So I think I can do it with root permissions. – Happy Coder Oct 17 '13 at 11:23
  • It can cause some pretty significant issues later on (the possibility it's going to litter you home directory with root-owned files), yes. – Oli Oct 17 '13 at 11:24

1 Answers1

5

The D in the STAT column means it's in an in "Uninterruptible sleep". That usually translates to something waiting for an IO command. These cannot be interrupted by kill.

You might be able to jimmy it back to life by unmounting your SSHFS mount. In general, using SSH with Sublime is a bit tricky. There is a paid-for addon that claims to work well but I would work locally. Either rsync or script something up to deploy (Fabric+Git is great).

Oli
  • 293,335