Help needed in killing a process

I'm trying to kill a process which is in sleep mode and the parent PID is 1 but I can't kill it with "kill -9" command. Is there a way to kill this process without rebooting?

Any help will be appreciated.

Steve

what is process id ? please post the full ps output

Below is the ps output:

$ ps -eflx | grep program1 | grep -v grep
  1 S  infodba 18887     1  0 154 30         5122b700 1456         52bdc548  Oct 22  pts/tj    0:03 program1

is the actual parent id is 18887 & not 1?

clemeot,
The PID is 18887 and the PPID is 1.

What user are you logged in as? Obviously, if you're not the owner of the process ( I assume "infodba"? ) or the superuser, you won't be able to kill it. What does the 'id' command display?

I tried doing "kill -9" using both infodba (the owner of the process) and with root user but it cannot be killed.

which flavour of unix your using ? (solaris ,linux or unix )

If solaris many ways to kill process..

I'm using HP-UX B.11.11 U

Hi stevefox,

'infodba' huh? Running Teamcenter? Getting runaway tcservers? :rolleyes:

Anyway, I think the answer to your question is:

First send SIGTERM or SIGKILL, then SIGCONT to the sleeping process so it can wake up and 'handle' the signals.

This would apply on Solaris, Linux and the BSDs - haven' t tested on HP-UX.

PS: sorry for unearthing this ancient thread - the info still applies though.

Anything in the process list for that terminal to kill first?
ps -ftpts/tj