We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04120ce commit f270b4bCopy full SHA for f270b4b
src/crystal/system/unix/file_descriptor.cr
@@ -61,7 +61,7 @@ module Crystal::System::FileDescriptor
61
end
62
63
private def system_close_on_exec?
64
- flags = FileDescriptor.fcntl(LibC::F_GETFD)
+ flags = FileDescriptor.fcntl(fd, LibC::F_GETFD)
65
flags.bits_set? LibC::FD_CLOEXEC
66
67
src/crystal/system/unix/socket.cr
@@ -1,6 +1,7 @@
1
require "c/netdb"
2
require "c/netinet/tcp"
3
require "c/sys/socket"
4
+require "crystal/fd_lock"
5
6
module Crystal::System::Socket
7
{% if IO.has_constant?(:Evented) %}
0 commit comments