summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-05-26 15:11:56 +0200
committerdimitri staessens <[email protected]>2016-05-26 15:11:56 +0200
commit4ede581f562e1f4b2f924559ce582cec5389e056 (patch)
tree2fa38dcbe15ba78b3327b10589a12df5c04a5403 /src/ipcpd
parent22fe93c00ce5a2b3a64b64f38dc749c83ed42206 (diff)
parentc1dd73319e5bc80a158cb1c4cffae3c9a7b13a87 (diff)
downloadouroboros-4ede581f562e1f4b2f924559ce582cec5389e056.tar.gz
ouroboros-4ede581f562e1f4b2f924559ce582cec5389e056.zip
Merged in sandervrijders/ouroboros/be-cbr (pull request #112)
Be cbr
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/ipcp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index dd370005..e0dd1b60 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -93,6 +93,9 @@ void * ipcp_main_loop(void * o)
return (void *) 1;
}
+ pthread_cleanup_push((void(*)(void *)) close,
+ (void *) &sockfd);
+
free(sock_path);
while (true) {
@@ -259,5 +262,7 @@ void * ipcp_main_loop(void * o)
close(lsockfd);
}
+ pthread_cleanup_pop(0);
+
return NULL;
}