X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common%2Fcommon.c;h=43b2bf22145c2b014b4f4c2bb4988c0733e37fe6;hb=e327d3786ba0371eaaff8e6ba0fe3fc39f095ae2;hp=e9e4f2e6b54d67e87d7bb87fdf62b561114a7bd8;hpb=bcdb5e34f3c251407304e01eea26607e77dd8609;p=apps%2Fpfixtools.git diff --git a/common/common.c b/common/common.c index e9e4f2e..43b2bf2 100644 --- a/common/common.c +++ b/common/common.c @@ -68,7 +68,7 @@ void common_sighandler(int sig) } } -static int setnonblock(int sock) +int setnonblock(int sock) { int res = fcntl(sock, F_GETFL); @@ -297,7 +297,7 @@ extern exitcall_t __madexit[]; static void common_shutdown(void) { - if (daemon_process) { + if (daemon_process && log_syslog) { info("stopping..."); } pidfile_close();