I knew you all will scold me after reading this thread, but i got stuck in the definition and usage of kill
, so begging all your pardon.
I have a java process, which used to create small threads/sub process....so i want to kill that main java by kill -0 <pid>......
so that 1st it can group All processes in the current process group and then kill .
but it is not doing what it should do.
please find the pid of my java process
abc 18984 1 1 10:51 pts/2 00:00:01 java -Dservice.name=FilterManager com.XXXX.abcbatch.common.FilterManager
and my kill command
o/p it's not killing 18984
i have an doubt , will kill -9 do the same type as -0 ?????
like it should kill all the sub process generated by java main....