summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-09 18:13:33 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-09 18:34:11 +0200
commite302f7c490e8ffc9a5fe74069115340230a80266 (patch)
tree4d5160ba92e7eb4451009d3cf3e683fc1af44e08 /src/ipcpd/ipcp.c
parent54853d3ff39079a78e9681c28d5ec65119738b18 (diff)
downloadouroboros-e302f7c490e8ffc9a5fe74069115340230a80266.tar.gz
ouroboros-e302f7c490e8ffc9a5fe74069115340230a80266.zip
ipcpd: Correct cleanup of filedescriptor
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 839a5a9b..a9f2b77b 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -256,7 +256,7 @@ void * ipcp_main_loop(void * o)
}
pthread_cleanup_pop(true);
-
+ pthread_cleanup_pop(false);
buffer.len = ipcp_msg__get_packed_size(&ret_msg);
if (buffer.len == 0) {
@@ -280,7 +280,7 @@ void * ipcp_main_loop(void * o)
}
free(buffer.data);
- pthread_cleanup_pop(true);
+ close(lsockfd);
}