diff options
author | Michael E Brown <michael_e_brown@dell.com> | 2007-12-11 14:56:19 -0600 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-11 14:56:19 -0600 |
commit | ebcf490ed2a9ec28634b86a18616a9796fcd22fa (patch) | |
tree | cf56af1a3ff7f3beebfcdbaf6ed8c494982eedac /docs | |
parent | e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0 (diff) | |
download | mock-ebcf490ed2a9ec28634b86a18616a9796fcd22fa.tar.gz mock-ebcf490ed2a9ec28634b86a18616a9796fcd22fa.tar.xz mock-ebcf490ed2a9ec28634b86a18616a9796fcd22fa.zip |
add failsafe for daemontest.c such that it exits after 5 mins rather than hanging around forever.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/daemontest.c | 4 |
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 */ |