cgre_start_daemon() returns 0 on success and > 0 on error. Callers must check that.
Signed-off-by: Jan Safranek <[email protected]> --- cgrulesengd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cgrulesengd.c b/cgrulesengd.c index f7ef5a8..9845fdb 100644 --- a/cgrulesengd.c +++ b/cgrulesengd.c @@ -754,7 +754,7 @@ int main(int argc, char *argv[]) /* Now, start the daemon. */ ret = cgre_start_daemon(logp, facility, daemon, verbosity); - if (ret < 0) { + if (ret != 0) { fprintf(stderr, "Error: Failed to launch the daemon, %d\n", ret); goto finished; ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
