waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

commit ee0b1831ee54a28eb7d66c8101ad2399e257cadb
parent 8bfea5ae224b767047a7b76846faf59177bc0767
Author: sin <sin@2f30.org>
Date:   Sat,  7 Mar 2015 18:38:00 +0000

Initialize/terminate backends

Diffstat:
Mwaffle.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/waffle.c b/waffle.c @@ -131,6 +131,11 @@ main(int argc, char *argv[]) if (sfd > fdmax) fdmax = sfd; + if (backends_init() < 0) { + fprintf(stderr, "Failed to initialize backends\n"); + exit(1); + } + while (1) { rfds = master; n = select(fdmax + 1, &rfds, NULL, NULL, NULL); @@ -162,5 +167,6 @@ main(int argc, char *argv[]) } } out: + backends_term(); exit(0); }