From 4f25bdd2590f65586931ec71f798a91443e13674 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 2 Aug 2014 06:44:34 +0200 Subject: Encapsulate semaphore handling --- src/fastd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index b6e7484..e63b204 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -537,8 +537,7 @@ static inline void init(int argc, char *argv[]) { VECTOR_ALLOC(ctx.async_pids, 0); #ifdef WITH_VERIFY - if (sem_init(&ctx.verify_limit, 0, VERIFY_LIMIT)) - exit_errno("sem_init"); + fastd_sem_init(&ctx.verify_limit, VERIFY_LIMIT); #endif if (pthread_attr_init(&ctx.detached_thread)) -- cgit v1.2.3