From: Etienne Dechamps Date: Sun, 22 Jun 2014 13:06:44 +0000 (+0100) Subject: Cleanly remove the device FD from the event loop before closing it. X-Git-Tag: release-1.1pre11~104 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0885b8d2fe69610e7e294735795d98db11157a5;p=oweals%2Ftinc.git Cleanly remove the device FD from the event loop before closing it. --- diff --git a/src/net_setup.c b/src/net_setup.c index 7c9f23a..f0ccc3c 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -1117,6 +1117,8 @@ void close_network_connections(void) { for(int i = 0; i < 4; i++) free(envp[i]); + if (device_fd >= 0) + io_del(&device_io); devops.close(); exit_control();