Would be possible to switch openpty() to posix_openpt() ? http://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_openpt.html Petr