Re: Sockets and PTYs

Frank Gießler <giessler-rET10f8tM1VVKN/[email protected]> Tue, 27 Apr 2004 16:49:53 +0200
Newsgroups gmane.comp.ide.emx.devel
Message-ID <[email protected]>
Holger Veit wrote:
> 
> The PTY support in xf86sup.sys is entirely unrelated to TCP/IP (should 
> be :-) ). It is a set of devices which form some kind of artificial pipe 

Yes, I know.

> I rather suspect a long existing bug in xf86sup.sys that in rare situations
> refuses to open another PTY even if it is still present and unblocked. But I
> haven't found that bug for years so far. Might be some race condition?

I'm not so sure. If I don't call socket(), the second PTY will always be 
opened. If I use DosOpen() instead of open(), the second PTY will also 
be opened, but now _imphandle() will fail (I hope _imphandle() can be 
used on a PTY). This socket() call seems to confuse the internal 
filehandle management of EMX. But I don't see how, yet.

Regards,
Frank.

-- 
  Frank Giessler
  Klinikum der Universitaet Jena               Tel.: +49-3641-9 32 57 80
  Biomagnetisches Zentrum                      Fax : +49-3641-9 32 57 72