summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-30 20:26:09 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-06-30 20:26:09 -0400
commita261839755dae539f57d3c4d48919346fccba86e (patch)
treea234dd6f2f198c31fc5d0b15e069ba9cf8fb70c8 /src
parent1995c3f14708c57825dc28805352e5a85487274f (diff)
Daemonize the monitor program.
Diffstat (limited to 'src')
-rw-r--r--src/monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/monitor.c b/src/monitor.c
index 661358d..4262210 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -63,6 +63,9 @@ int main (int argc, char *argv[])
if (xenfb_monitor_init() < 0)
return 2;
+ /* Create a daemon */
+ daemon(0, 1);
+
/* Enter select loop */
while (!timetodie && fd_run_select() == 0);