hi all
by browsing the code of pty egg (http://wiki.call-cc.org/eggref/4/pty)
in source code
http://code.call-cc.org/svn/chicken-eggs/release/4/pty/trunk/pty.scm
the procedure
raw-open-pty
uses a magic number 1024 , which used to pack master fd and slave fd
into one integer to return.
but
1024 is the default value of FD_SETSIZE i.e. the largest fd one can use with
select(), so I think you have the right idea. Use of a magic constant might be
reconsidered though. Could also convert the code to use poll() like Chicken
core was some time ago.
Jim
On Feb 20, 2015, at 02:27,
hi all
by browsing the code of pty egg (http://wiki.call-cc.org/eggref/4/pty)
in source code
http://code.call-cc.org/svn/chicken-eggs/release/4/pty/trunk/pty.scm
the procedure
raw-open-pty
uses a magic number 1024 , which used to pack master fd and slave fd
into one integer to return.
but