summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/daemontest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/daemontest.c b/docs/daemontest.c
index f0e7393..5f63e7a 100644
--- a/docs/daemontest.c
+++ b/docs/daemontest.c
@@ -95,7 +95,9 @@ char str[10];
int main()
{
daemonize();
- while(1) sleep(1); /* run */
+ // run for roughly 5 mins then exit. No need to stick around if unit test fails.
+ int i=0;
+ for( i=0; i<300; i++ ) sleep(1);
}
/* EOF */