summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-07-12 11:56:50 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-07-12 11:56:50 +0200
commit3efcafe5a445cd736300657e59a8b505bace5c71 (patch)
tree484a7b90c5c4fbb269be5491fa643686102213fa /src
parent4282e49f55c7353e0fd0b1985b6f4b1072a91092 (diff)
downloadouroboros-3efcafe5a445cd736300657e59a8b505bace5c71.tar.gz
ouroboros-3efcafe5a445cd736300657e59a8b505bace5c71.zip
ipcpd: Check connmgr acceptor thread at create
Diffstat (limited to 'src')
-rw-r--r--src/ipcpd/normal/connmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipcpd/normal/connmgr.c b/src/ipcpd/normal/connmgr.c
index 00af3db4..6259969a 100644
--- a/src/ipcpd/normal/connmgr.c
+++ b/src/ipcpd/normal/connmgr.c
@@ -169,7 +169,8 @@ int connmgr_init(void)
int connmgr_start(void)
{
- pthread_create(&connmgr.acceptor, NULL, flow_acceptor, NULL);
+ if (pthread_create(&connmgr.acceptor, NULL, flow_acceptor, NULL))
+ return -1;
return 0;
}