Mercurial > vordog
comparison vd_watchdog/vd_watchdog.c @ 2:89e9d591748d
Fix bug of usage for vd_watchdog, and add Makefile
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 08 Jul 2008 11:17:01 +0800 |
parents | 0b9854adb86c |
children | 60a234c9c03f |
comparison
equal
deleted
inserted
replaced
1:0b9854adb86c | 2:89e9d591748d |
---|---|
69 /* close(STDERR_FILENO); */ | 69 /* close(STDERR_FILENO); */ |
70 } | 70 } |
71 | 71 |
72 static void | 72 static void |
73 usage(const char *prog) { | 73 usage(const char *prog) { |
74 fprintf(stderr, "Usage: %s [-msMH] <timeout>\n"); | 74 fprintf(stderr, "Usage: %s [-msMH] <timeout>\n", prog); |
75 fprintf(stderr, "\t-s\tcount in seconds.\n"); | 75 fprintf(stderr, "\t-s\tcount in seconds.\n"); |
76 fprintf(stderr, "\t-M\tcount in minutes.\n"); | 76 fprintf(stderr, "\t-M\tcount in minutes.\n"); |
77 fprintf(stderr, "\t-m\tcount in hours.\n"); | 77 fprintf(stderr, "\t-m\tcount in hours.\n"); |
78 fprintf(stderr, | 78 fprintf(stderr, |
79 "\t<timeout> is interval between periodically reset of\n" | 79 "\t<timeout> is interval between periodically reset of\n" |