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 72729e4 commit d0bba03Copy full SHA for d0bba03
Network/Socket/Types.hsc
@@ -168,6 +168,10 @@ withFdSocket (Socket ref _) f = do
168
return r
169
170
-- | Socket is closed and a duplicated file descriptor is returned.
171
+-- The duplicated descriptor is no longer subject to the possibility
172
+-- of unexpectedly being closed if the socket is finalized. It is
173
+-- now the caller's responsibility to ultimately close the
174
+-- duplicated file descriptor.
175
socketToFd :: Socket -> IO CInt
176
socketToFd s = do
177
fd <- unsafeFdSocket s
0 commit comments