aboutsummaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-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);