mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-30 05:56:39 +02:00
696d5f05fb
later fd_close() call. This also removes fd_map() since fd_open w/FDCLOSE_NONE now does that. * If you use fd_socket() or fd_accept(), then no change. When fd_close() is called we call close() on *NIX and closesocket() on Win. * If you use fd_fileopen(), then no change. When fd_close() is called we will call close() on both *NIX and Win. * If you used fd_open() and then fd_unmap() because you didn't want us to close the socket, then use fd_open() with FDCLOSE_NONE and just call fd_close() instead of fd_unmap(). We will not actually close the fd in fd_close() (FDCLOSE_NONE). * If you called fd_open() with other intentions then either specify a FDCLOSE_SOCKET / FDCLOSE_FILE as the last argument, or more likely: don't use fd_open() at all and use fd_socket() or fd_fileopen() instead. For reasons on this change, see previous patch. This way is more sane and makes it harder to make mistakes even beyond Windows-specific issues.