mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7df246bd79
commit
3f289d9237
1 changed files with 2 additions and 1 deletions
|
@ -230,7 +230,8 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
|
||||||
|
|
||||||
#if defined(__sun) || defined(__FreeBSD__)
|
#if defined(__sun) || defined(__FreeBSD__)
|
||||||
/* workaround for Solaris 10: grantpt() doesn't work if FD_CLOEXEC is set. [ruby-dev:44688] */
|
/* workaround for Solaris 10: grantpt() doesn't work if FD_CLOEXEC is set. [ruby-dev:44688] */
|
||||||
/* FreeBSD 8 supported O_CLOEXEC for posix_openpt, but FreeBSD 9 removed it */
|
/* FreeBSD 8 supported O_CLOEXEC for posix_openpt, but FreeBSD 9 removed it.
|
||||||
|
* http://www.freebsd.org/cgi/query-pr.cgi?pr=162374 */
|
||||||
if ((masterfd = posix_openpt(O_RDWR|O_NOCTTY)) == -1) goto error;
|
if ((masterfd = posix_openpt(O_RDWR|O_NOCTTY)) == -1) goto error;
|
||||||
if (sigaction(SIGCHLD, &dfl, &old) == -1) goto error;
|
if (sigaction(SIGCHLD, &dfl, &old) == -1) goto error;
|
||||||
if (grantpt(masterfd) == -1) goto grantpt_error;
|
if (grantpt(masterfd) == -1) goto grantpt_error;
|
||||||
|
|
Loading…
Add table
Reference in a new issue