[PATCH] Solaris PTY fixes for run_erl

Ryan Tilder rtilder@REDACTED
Sat Aug 7 06:34:32 CEST 2010


A couple of our customers have run into problems with our use of run_erl on
Solaris.  These patches include the addition of a simple open("/dev/ptmx")
in place of the call to posix_openpt() in open_pty_master() and the addition
of several calls to ioctl() to push three STREAMS modules onto the slave PTY
in open_pty_slave().  Also a small typo fix for debug code in
open_pty_slave().

These patches may work on other platforms but I only have
Solaris/OpenSolaris to test on, so the #ifdefs are deliberately restricted.

git fetch git://github.com/rtilder/otp.git solaris-pty-handling-fixes

Debug typo fix:
http://github.com/rtilder/otp/commit/edfe4b9e94762fb48da2d533f83a0e7c095fad7a

Solaris PTY handling:
http://github.com/rtilder/otp/commit/06ab492ea956010955689acfd95d24b8fb351fda

--Ryan


More information about the erlang-patches mailing list