diff options
author | Samuel Williams <[email protected]> | 2020-05-14 22:10:55 +1200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-14 22:10:55 +1200 |
commit | 0e3b0fcdba70cf96a8e0654eb8f50aacb8024bd4 (patch) | |
tree | 74d381412dfd8ff49dd3039f8aeae09ad9e4e6e3 /ext/socket/unixsocket.c | |
parent | 336119dfc5e6baae0a936d6feae780a61975479c (diff) |
Thread scheduler for light weight concurrency.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3032
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'ext/socket/unixsocket.c')
-rw-r--r-- | ext/socket/unixsocket.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/socket/unixsocket.c b/ext/socket/unixsocket.c index 0c3a01d21e..53a50958ed 100644 --- a/ext/socket/unixsocket.c +++ b/ext/socket/unixsocket.c @@ -455,11 +455,7 @@ retry: #endif rb_update_max_fd(fd); - - if (rsock_cmsg_cloexec_state < 0) - rsock_cmsg_cloexec_state = rsock_detect_cloexec(fd); - if (rsock_cmsg_cloexec_state == 0 || fd <= 2) - rb_maygvl_fd_fix_cloexec(fd); + rb_maygvl_fd_fix_cloexec(fd); if (klass == Qnil) return INT2FIX(fd); |