<?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: pclose hanging in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243114#M687328</link>
    <description>but you may place it for testing; if thing work fine with remsh then definitly we have problems with ssh. I did have a similar problem while doing scp while rcp worked fine. Now we are upgrading both ssh  (from A.04.20.004 to Shell-A.04.50.021 ) well as OS( from 11.11 to 11.23)</description>
    <pubDate>Thu, 31 Jul 2008 17:24:08 GMT</pubDate>
    <dc:creator>skt_skt</dc:creator>
    <dc:date>2008-07-31T17:24:08Z</dc:date>
    <item>
      <title>pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243111#M687325</link>
      <description>We have a C++ program that's been in use for over 10 years. Sometime in the last couple of years it started hanging on a call to pclose - the process just stalls and doesn't return.&lt;BR /&gt;&lt;BR /&gt;Since it's being used to open an ssh connection to a remote host, I suspect it might be caused by some form of network instability. There are multiple copies of this process running constantly on multiple hosts and the problem occurs quite rarely.&lt;BR /&gt;&lt;BR /&gt;The code looks like this:&lt;BR /&gt;&lt;BR /&gt;_popenFile = popen("ssh -q -o 'StrictHostKeyChecking no' -o 'AllowedAuthentications publickey' someRemoteHost someRemoteProcess", "r");&lt;BR /&gt;if (_popenFile == (FILE *)NULL) &lt;BR /&gt;    &lt;HANDLE error=""&gt;&lt;BR /&gt;if ((_filDes = fileno (_popenFile)) == -1)&lt;BR /&gt;    &lt;HANDLE error=""&gt;&lt;BR /&gt;_popenIfStream.attach (_filDes);&lt;BR /&gt;if (!_popenIfStream)&lt;BR /&gt;    &lt;HANDLE error=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;GET a="" bunch="" of="" data="https://community.hpe.com/" from="" remote="" process="" ...=""&gt;&lt;BR /&gt;&lt;BR /&gt;_popenIfStream.detach ();&lt;BR /&gt;pclose (_popenFile);&lt;/GET&gt;&lt;/HANDLE&gt;&lt;/HANDLE&gt;&lt;/HANDLE&gt;</description>
      <pubDate>Wed, 30 Jul 2008 16:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243111#M687325</guid>
      <dc:creator>UnixTeam (Enbridge)</dc:creator>
      <dc:date>2008-07-30T16:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243112#M687326</link>
      <description>is the popen failing only when ssh is involved? what is the ssh version and OS version? Did u try putting  remsh instead?</description>
      <pubDate>Thu, 31 Jul 2008 00:58:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243112#M687326</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-07-31T00:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243113#M687327</link>
      <description>Santhosh wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; is the popen failing only when ssh is involved?&lt;BR /&gt;&lt;BR /&gt;If any other calls to popen are failing I'm unaware of it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; what is the ssh version and OS version?&lt;BR /&gt;&lt;BR /&gt;ssh2 3.2.0 and HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Did u try putting remsh instead?&lt;BR /&gt;&lt;BR /&gt;The popen used to use remsh until I was required to change it to ssh for security reasons.</description>
      <pubDate>Thu, 31 Jul 2008 12:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243113#M687327</guid>
      <dc:creator>UnixTeam (Enbridge)</dc:creator>
      <dc:date>2008-07-31T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243114#M687328</link>
      <description>but you may place it for testing; if thing work fine with remsh then definitly we have problems with ssh. I did have a similar problem while doing scp while rcp worked fine. Now we are upgrading both ssh  (from A.04.20.004 to Shell-A.04.50.021 ) well as OS( from 11.11 to 11.23)</description>
      <pubDate>Thu, 31 Jul 2008 17:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243114#M687328</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-07-31T17:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243115#M687329</link>
      <description>Santhosh wrote:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but you may place it for testing; if thing work fine with remsh then definitly we have problems with ssh.&lt;BR /&gt;&lt;BR /&gt;We have probably 150 copies of this process running 24/7 on 30 or so different servers. The problem occurs maybe once or twice a week in total. It makes it difficult to test because even if the remsh runs without error for a year in one test configuration it won't prove that the problem is solved (since each individual process runs error free for 1 to 2 years average).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I did have a similar problem while doing scp while rcp worked fine. Now we are upgrading both ssh (from A.04.20.004 to Shell-A.04.50.021 ) well as OS( from 11.11 to 11.23)&lt;BR /&gt;&lt;BR /&gt;You say you had a similar problem with scp, could you give me a bit more detail on that?&lt;BR /&gt;&lt;BR /&gt;I'll look into upgrading ssh and OS versions. I doubt if I'll have any luck in convincing anyone to do the OS upgrade but the ssh should be doable.</description>
      <pubDate>Fri, 01 Aug 2008 12:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243115#M687329</guid>
      <dc:creator>UnixTeam (Enbridge)</dc:creator>
      <dc:date>2008-08-01T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: pclose hanging</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243116#M687330</link>
      <description>ssh upgrade is the one needed. we already had the OS upgrade in the plan and did both together.&lt;BR /&gt;&lt;BR /&gt;go with this version 04.70.009 with HP-UX 11.11</description>
      <pubDate>Fri, 01 Aug 2008 14:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pclose-hanging/m-p/4243116#M687330</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-08-01T14:52:23Z</dc:date>
    </item>
  </channel>
</rss>

