diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-07-12 11:56:50 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-07-12 11:56:50 +0200 |
commit | 3efcafe5a445cd736300657e59a8b505bace5c71 (patch) | |
tree | 484a7b90c5c4fbb269be5491fa643686102213fa /src/ipcpd | |
parent | 4282e49f55c7353e0fd0b1985b6f4b1072a91092 (diff) | |
download | ouroboros-3efcafe5a445cd736300657e59a8b505bace5c71.tar.gz ouroboros-3efcafe5a445cd736300657e59a8b505bace5c71.zip |
ipcpd: Check connmgr acceptor thread at create
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/normal/connmgr.c | 3 |
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; } |