<?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: Pseudo tty problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684432#M723286</link>
    <description>I am familiar with the STREAMS pty system.  The device /dev/ptmx is there but doesn't seem to work: When I try to open the slave the program blocks.  So I switched to using BSD style ptys (which, by the terminal names I get, it seems telnetd is also using).&lt;BR /&gt;&lt;BR /&gt;BSD style ptys almost work.  If, after the slave is closed, I do a read, the master simply hangs, instead of returning 0 (EOF).&lt;BR /&gt;&lt;BR /&gt;Obviously, since I can telnet into the system and don't seem to have any telnetds being stuck, there must be some method of being notified that the slave was closed.&lt;BR /&gt;&lt;BR /&gt;So, I guess my real question is:  How is the master side notified that the slave side has been closed?</description>
    <pubDate>Mon, 18 Mar 2002 15:55:57 GMT</pubDate>
    <dc:creator>Scott Nelson_1</dc:creator>
    <dc:date>2002-03-18T15:55:57Z</dc:date>
    <item>
      <title>Pseudo tty problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684430#M723284</link>
      <description>I am trying to port our application from linux/SCO to an HP-UX 10.20 system, and it makes use of pseudo terminals.&lt;BR /&gt;&lt;BR /&gt;I can't get the slave to open when using /dev/ptmx, and when using /dev/ptyXX, when the slave closes, the master does not notice it and hangs.&lt;BR /&gt;&lt;BR /&gt;On this particular system that I am using to port my app (which is the customer's system) is running HP-UX 10.20.&lt;BR /&gt;&lt;BR /&gt;When I telnet into the system, it is using BSD style pseudo ttys (/dev/ttyp9, for example).&lt;BR /&gt;&lt;BR /&gt;I've attached the relevant code.&lt;BR /&gt;&lt;BR /&gt;...help!...</description>
      <pubDate>Fri, 15 Mar 2002 19:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684430#M723284</guid>
      <dc:creator>Scott Nelson_1</dc:creator>
      <dc:date>2002-03-15T19:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pseudo tty problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684431#M723285</link>
      <description>/dev/ptmx is associated with the STREAMS pts(7) driver. Check the man-pages pts(7) and ptm(7) for details.&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Mar 2002 05:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684431#M723285</guid>
      <dc:creator>Charles Slivkoff</dc:creator>
      <dc:date>2002-03-16T05:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pseudo tty problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684432#M723286</link>
      <description>I am familiar with the STREAMS pty system.  The device /dev/ptmx is there but doesn't seem to work: When I try to open the slave the program blocks.  So I switched to using BSD style ptys (which, by the terminal names I get, it seems telnetd is also using).&lt;BR /&gt;&lt;BR /&gt;BSD style ptys almost work.  If, after the slave is closed, I do a read, the master simply hangs, instead of returning 0 (EOF).&lt;BR /&gt;&lt;BR /&gt;Obviously, since I can telnet into the system and don't seem to have any telnetds being stuck, there must be some method of being notified that the slave was closed.&lt;BR /&gt;&lt;BR /&gt;So, I guess my real question is:  How is the master side notified that the slave side has been closed?</description>
      <pubDate>Mon, 18 Mar 2002 15:55:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pseudo-tty-problems/m-p/2684432#M723286</guid>
      <dc:creator>Scott Nelson_1</dc:creator>
      <dc:date>2002-03-18T15:55:57Z</dc:date>
    </item>
  </channel>
</rss>

