diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-02 06:44:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-02 06:45:39 +0200 |
commit | 4f25bdd2590f65586931ec71f798a91443e13674 (patch) | |
tree | b1594588c8286c2f5f9d1caae1616c7d144e6fc1 /src/fastd.c | |
parent | 96a291d11f884b18356ba8ef4b12b82d658d8d04 (diff) | |
download | fastd-4f25bdd2590f65586931ec71f798a91443e13674.tar fastd-4f25bdd2590f65586931ec71f798a91443e13674.zip |
Encapsulate semaphore handling
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)) |