diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-15 13:20:25 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-15 13:20:25 -0800 |
commit | a1a648fe905808ffa902c44ba7626e3b3eeda627 (patch) | |
tree | 88d47b1b7032773f5a50edd651adf1a513b763f2 | |
parent | 246cfe96f12ce06a5b504873789ada2efd288885 (diff) | |
download | kgio-a1a648fe905808ffa902c44ba7626e3b3eeda627.tar.gz |
The kgio_accept and kgio_tryaccept methods now take an additional flags argument, so there's no reason to set global flags anywhere.
-rw-r--r-- | ext/kgio/accept.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/kgio/accept.c b/ext/kgio/accept.c index 661e02c..f78d0fe 100644 --- a/ext/kgio/accept.c +++ b/ext/kgio/accept.c @@ -413,6 +413,8 @@ static VALUE unix_accept(int argc, VALUE *argv, VALUE self) * * Returns true if newly accepted Kgio::Sockets are created with the * FD_CLOEXEC file descriptor flag, false if not. + * + * Deprecated, use the per-socket flags for kgio_*accept instead. */ static VALUE get_cloexec(VALUE mod) { @@ -427,6 +429,8 @@ static VALUE get_cloexec(VALUE mod) * * Returns true if newly accepted Kgio::Sockets are created with the * O_NONBLOCK file status flag, false if not. + * + * Deprecated, use the per-socket flags for kgio_*accept instead. */ static VALUE get_nonblock(VALUE mod) { @@ -448,6 +452,8 @@ static VALUE get_nonblock(VALUE mod) * * This is on by default, as there is little reason to deal to enable * it for client sockets on a socket server. + * + * Deprecated, use the per-socket flags for kgio_*accept instead. */ static VALUE set_cloexec(VALUE mod, VALUE boolean) { @@ -480,6 +486,10 @@ static VALUE set_cloexec(VALUE mod, VALUE boolean) * available (and on newer GNU/Linux, accept4() may also set * the non-blocking flag. This defaults to +true+ on non-GNU/Linux * systems. + * + * This is always true on Ruby implementations using user-space threads. + * + * Deprecated, use the per-socket flags for kgio_*accept instead. */ static VALUE set_nonblock(VALUE mod, VALUE boolean) { |