diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-26 15:11:56 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-05-26 15:11:56 +0200 |
commit | 4ede581f562e1f4b2f924559ce582cec5389e056 (patch) | |
tree | 2fa38dcbe15ba78b3327b10589a12df5c04a5403 /src/ipcpd/ipcp.c | |
parent | 22fe93c00ce5a2b3a64b64f38dc749c83ed42206 (diff) | |
parent | c1dd73319e5bc80a158cb1c4cffae3c9a7b13a87 (diff) | |
download | ouroboros-4ede581f562e1f4b2f924559ce582cec5389e056.tar.gz ouroboros-4ede581f562e1f4b2f924559ce582cec5389e056.zip |
Merged in sandervrijders/ouroboros/be-cbr (pull request #112)
Be cbr
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r-- | src/ipcpd/ipcp.c | 5 |
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; } |