aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/mutatord.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-03-11 16:05:34 +0000
committerbloodstalker <thabogre@gmail.com>2017-03-11 16:05:34 +0000
commit8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d (patch)
tree1c50dcd7f8f6fc73820d835f799a74a7ad363be8 /daemon/mutatord.c
parentadded a new test class (diff)
downloadmutator-8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d.tar.gz
mutator-8d113e2a3d7e334240e854d72fc6eb4c9dd52d0d.zip
fixed another coverity issue
Diffstat (limited to '')
-rw-r--r--daemon/mutatord.c4
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);