diff options
author | bloodstalker <thabogre@gmail.com> | 2017-03-11 16:05:34 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-03-11 16:05:34 +0000 |
commit | 8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d (patch) | |
tree | 1c50dcd7f8f6fc73820d835f799a74a7ad363be8 /daemon/mutatord.c | |
parent | added a new test class (diff) | |
download | mutator-8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d.tar.gz mutator-8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d.zip |
fixed another coverity issue
Diffstat (limited to '')
-rw-r--r-- | daemon/mutatord.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |