#endif
#ifdef mingw32_HOST_OS
import GHC.Real ( div )
-import GHC.Ptr ( plusPtr, FunPtr(..) )
+import GHC.Ptr ( FunPtr(..) )
#endif
#ifdef mingw32_HOST_OS
import GHC.Read ( Read )
throwErrnoIfMinus1 "startIOManagerThread" (c_pipe fds)
rd_end <- peekElemOff fds 0
wr_end <- peekElemOff fds 1
- setNonBlockingFD wr_end -- writes happen in a signal handler, we
- -- don't want them to block.
+ setNonBlockingFD wr_end True -- writes happen in a signal handler, we
+ -- don't want them to block.
setCloseOnExec rd_end
setCloseOnExec wr_end
writeIORef stick (fromIntegral wr_end)
service_loop wakeup readfds writefds ptimeval reqs' delays'
-io_MANAGER_WAKEUP, io_MANAGER_DIE, io_MANAGER_SYNC :: CChar
+io_MANAGER_WAKEUP, io_MANAGER_DIE, io_MANAGER_SYNC :: Word8
io_MANAGER_WAKEUP = 0xff
io_MANAGER_DIE = 0xfe
io_MANAGER_SYNC = 0xfd