Branch: Tag:


2013-11-13 16:59:56 by Henrik Grubbström (Grubba) <>

Stdio.File: Fix grantpt() on Solaris (and others?)

grantpt(3C) on Solaris is implemented as fork + exec of
"/usr/lib/pt_chmod". Unfortunately the libc function doesn't bother
clearing the FD_CLOEXEC flag before the exec, so the fd never got
to the helper binary, which caused grantpt(3C) to fail with EPERM.

436:    filename of the associated pts-file. This function should only be    called once.</p>   </dd> + <dt class='head--doc'>Returns</dt> + <dd class='body--doc'><p>Returns the filename of the corresponding pts.</p> + </dd>   <dt class='head--doc'>Note</dt>   <dd class='body--doc'><p>This function is only available on some platforms.</p>   </dd></dl>