projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed1d087
)
Cleanly remove the device FD from the event loop before closing it.
author
Etienne Dechamps
<etienne@edechamps.fr>
Sun, 22 Jun 2014 13:06:44 +0000
(14:06 +0100)
committer
Etienne Dechamps
<etienne@edechamps.fr>
Sun, 22 Jun 2014 14:03:53 +0000
(15:03 +0100)
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index 7c9f23a958d3c293cb40a67e27bd7d4b41286a3f..f0ccc3c85ca168be19f501a4f93465169c94ffa7 100644
(file)
--- 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();