<?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: Trouble with 'socket' system call in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450278#M564191</link>
    <description>use tusc to trace the system/socket calls and make sure the subsequent calls have the fd's you expect them to.</description>
    <pubDate>Mon, 27 Dec 2004 20:37:54 GMT</pubDate>
    <dc:creator>rick jones</dc:creator>
    <dc:date>2004-12-27T20:37:54Z</dc:date>
    <item>
      <title>Trouble with 'socket' system call</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450275#M564188</link>
      <description>Hi.&lt;BR /&gt;I have server application, wich listen for socket, accepted connections and forks childs.&lt;BR /&gt;This app work properly many time, but something unknown occured yestoday.&lt;BR /&gt;After this 'accept' system call return error: 'Bad file descriptor'. I trace my application and see, that 'socket' system call return '0' value. After this my server can accept only one connection, and after this 'accept' return error.&lt;BR /&gt;Help me please.</description>
      <pubDate>Sat, 25 Dec 2004 07:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450275#M564188</guid>
      <dc:creator>Vadim Yezhakov</dc:creator>
      <dc:date>2004-12-25T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 'socket' system call</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450276#M564189</link>
      <description>When your server forks the child process, does it remember to call close() on the descriptor returned by the accept() call?  (This is in the server, not the child)  If it does not, eventually, your server process will hit the ceiling for maximum number of open file descriptors - the maxfiles system tunable.&lt;BR /&gt;&lt;BR /&gt;Also, is the socket() call returning 0, or is it actually returning -1 and setting errno to something?</description>
      <pubDate>Sun, 26 Dec 2004 17:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450276#M564189</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-12-26T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 'socket' system call</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450277#M564190</link>
      <description>Hi Rick.&lt;BR /&gt;I'am close socket in parent after fork, of course. At the begin i also think that limit of opened descriptors are riched.&lt;BR /&gt;But i restart server, run application and problem don't go away.&lt;BR /&gt;Socket function not return -1 and not set errno.&lt;BR /&gt;It return 0. After this application can accept only first connection (this connection is work properly). But after first accept all another accept calls returns -1 and set errno = 'Bad file descriptor'.</description>
      <pubDate>Sun, 26 Dec 2004 23:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450277#M564190</guid>
      <dc:creator>Vadim Yezhakov</dc:creator>
      <dc:date>2004-12-26T23:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with 'socket' system call</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450278#M564191</link>
      <description>use tusc to trace the system/socket calls and make sure the subsequent calls have the fd's you expect them to.</description>
      <pubDate>Mon, 27 Dec 2004 20:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trouble-with-socket-system-call/m-p/3450278#M564191</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-12-27T20:37:54Z</dc:date>
    </item>
  </channel>
</rss>

