From 8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sat, 11 Mar 2017 19:35:34 +0330 Subject: fixed another coverity issue --- daemon/mutatord.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/mutatord.c') diff --git a/daemon/mutatord.c b/daemon/mutatord.c index edffe34..7d4a244 100644 --- a/daemon/mutatord.c +++ b/daemon/mutatord.c @@ -130,7 +130,7 @@ int main(void) fprintf(mut_log, "%s", "closed standard file descriptors..\n"); /*deamon loop*/ - while(1) + do { fprintf(mut_log, "%s", "running server...\n"); //sleep(1); @@ -138,7 +138,7 @@ int main(void) fprintf(mut_log, "%s%d%s", "server terminated with exit code ", server_exit_code, "\n"); fprintf (mut_log, "%s", "closing down server\n"); fclose(mut_log); - } + }while(0); /*@DEVI-these obviously will never run. theyre just a reminder that i need to handle the gracefull shutdown*/ fclose(mut_log); -- cgit v1.2.3