<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to kill process, in a &amp;quot;stop&amp;quot; state in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532354#M869433</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think the best thing what can be done is to follow Rita's first advice and reboot system, if you really want to kill this process. But must add, not only zombie precesses we are not able to kill. Any process in a high priority state waiting for sth is robust and does not react on the signal 9 and any other. So in practice only way is to reboot.&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;BR /&gt;</description>
    <pubDate>Fri, 25 May 2001 15:19:35 GMT</pubDate>
    <dc:creator>Wieslaw Krajewski</dc:creator>
    <dc:date>2001-05-25T15:19:35Z</dc:date>
    <item>
      <title>Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532347#M869426</link>
      <description>This is a new one for me.  I have a user that has a process that he wants to kill.  The parent id is 1 and root cannot kill it.  I checked to see if there were any semaphores or shared memory segments that might be keeping it around, but it doesn't look like it.  I was expecting to see it in a zombie state in top, but it is in a "stop" state.  Has anyone come across this before?  If so, is there anything short of a boot to get rid of this guy?&lt;BR /&gt;&lt;BR /&gt;here is the output from top:&lt;BR /&gt;&lt;BR /&gt;?    25242 user1    152 20  2408K  2876K stop     0:00  0.04  0.04 mtmain0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for any input.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 May 2001 12:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532347#M869426</guid>
      <dc:creator>Kyle Adamski</dc:creator>
      <dc:date>2001-05-24T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532348#M869427</link>
      <description>Zombie processes can not "as a general rule" be killed.  Showing that the parent process is '1' is telling you this walking dead process is owned by the operating system.&lt;BR /&gt;&lt;BR /&gt;The only way to get rid of it is to reboot.....&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;/rcw</description>
      <pubDate>Thu, 24 May 2001 12:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532348#M869427</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-05-24T12:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532349#M869428</link>
      <description>Well I did a bit more checking on this and came up with this that I think may be a better answer....&lt;BR /&gt;&lt;BR /&gt;SIGSTOP and SIGCONT: Useful signals&lt;BR /&gt;&lt;BR /&gt;There are several useful signals that can be used to suspend and resume tasks. SIGSTOP will stop a task, leaving it in a suspended state. And SIGCONT will resume a task stopped by SIGSTOP. To send these signals to a task, use the kill() function described above. If you want to send a signal to the current running task and you do not know what the process id is, use the getpid() function. See below for an example. &lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;   int mypid;&lt;BR /&gt;&lt;BR /&gt;   printf("\n I'm going to stop myself and I don't know my pid.\n");&lt;BR /&gt;&lt;BR /&gt;   /* get my process id */&lt;BR /&gt;   mypid = getpid();&lt;BR /&gt;&lt;BR /&gt;   /* send myself the stop signal */ &lt;BR /&gt;   kill(mypid,SIGSTOP);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita</description>
      <pubDate>Thu, 24 May 2001 13:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532349#M869428</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-05-24T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532350#M869429</link>
      <description>I'm not sure about your app, but we see similar problems when folks don't sequence the commands for the PFS daemon correctly.  For instance, they eject a CD before umounting the CD using the pfs_umount command.&lt;BR /&gt;&lt;BR /&gt;According the HP folks, the problem is that the software gets "hung" out in the hardware device.  In effect you can kill the process, but it's "immune" to the kill because it's waiting for I/O from a hardware device that in an unknown state.  &lt;BR /&gt;&lt;BR /&gt;Unfortunately, the I/O will never happen, and unfortunately the process will never go away without a reboot, and unfortunately you won't be able to use the device until you reboot.&lt;BR /&gt;&lt;BR /&gt;I don't recall seeing these apps in a STOP state, but you might see if this app could caught up in hardware.&lt;BR /&gt;&lt;BR /&gt;I also wonder if a process in the STOP state&lt;BR /&gt;can be killed, since STOP and KILL are the only two signals that cannot be ignored.&lt;BR /&gt;&lt;BR /&gt;Why don't you try to resume the process&lt;BR /&gt;kill -26 PID&lt;BR /&gt;then try to kill it &lt;BR /&gt;kill -9 PID&lt;BR /&gt;</description>
      <pubDate>Thu, 24 May 2001 13:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532350#M869429</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-05-24T13:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532351#M869430</link>
      <description>&lt;BR /&gt;The zombie is probably being held open by a TCP socket connection to another machine. Use the shareware lsof program to try to find the IP associated with the pid of the zombie, break the tcp connection (reboot remote box, use ndd command to kill the tcp connection) and the zombie should die a peaceful death.</description>
      <pubDate>Thu, 24 May 2001 13:53:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532351#M869430</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-05-24T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532352#M869431</link>
      <description>This problem is a "pet peave" of mine.The IBM mainframe OS had this problem about 30 years ago.  Of course their program dispatcher is markedly different than Unix's. What an enterprising System Programmer did was write a system routine called "burn" that would terminate a process regardless of its state. It simply removed it from the Program Dispatchers Queue. This is an over simplification of the "burn" process, but it got the job done! You no longer had to re-IPL to clear a "rogue" process. Why such a function is not available in Unix, I'll never know. Certainly, Unix has internal representations of all known processes. A command could be written to locate a process's internal representation(s) and remove them and notify the process's parent that it had terminated! The pat answer given to me by the Unix System support folks, is 'this is not "vanilla" Unix'. Unix uses the signal protocol, which means the intended victim can only be killed if in ceratin states. If they are in Oklahoma for example, waiting for the train to take them to California, KILL cannot touch them since they are in a "wait" state. (ie they will not recognize any signals).</description>
      <pubDate>Fri, 25 May 2001 14:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532352#M869431</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2001-05-25T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532353#M869432</link>
      <description>I didn't see a socket in use with lsof and ended up just taking the "easy" way out.  Thanks for all of the prompt suggestions everyone.</description>
      <pubDate>Fri, 25 May 2001 15:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532353#M869432</guid>
      <dc:creator>Kyle Adamski</dc:creator>
      <dc:date>2001-05-25T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to kill process, in a "stop" state</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532354#M869433</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think the best thing what can be done is to follow Rita's first advice and reboot system, if you really want to kill this process. But must add, not only zombie precesses we are not able to kill. Any process in a high priority state waiting for sth is robust and does not react on the signal 9 and any other. So in practice only way is to reboot.&lt;BR /&gt;&lt;BR /&gt;Rgds.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 May 2001 15:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-kill-process-in-a-quot-stop-quot-state/m-p/2532354#M869433</guid>
      <dc:creator>Wieslaw Krajewski</dc:creator>
      <dc:date>2001-05-25T15:19:35Z</dc:date>
    </item>
  </channel>
</rss>

