From 3efcafe5a445cd736300657e59a8b505bace5c71 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 12 Jul 2017 11:56:50 +0200 Subject: ipcpd: Check connmgr acceptor thread at create --- src/ipcpd/normal/connmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3