From c115bd11aa3fb75222ede49b8e6dd4674d2f378a Mon Sep 17 00:00:00 2001 From: David Teigland Date: Tue, 9 Jun 2009 15:33:06 -0500 Subject: cpgx: add -w option wait this many seconds between kill/restart Signed-off-by: David Teigland --- cpgx/cpgx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpgx/cpgx.c b/cpgx/cpgx.c index 3681b08..4b4bc0d 100644 --- a/cpgx/cpgx.c +++ b/cpgx/cpgx.c @@ -1694,7 +1694,7 @@ int main(int argc, char **argv) int optchar; while (cont) { - optchar = getopt(argc, argv, "H:D:l:e:d:s:t:i:ja:p:I:chV"); + optchar = getopt(argc, argv, "H:D:l:e:d:s:t:i:jw:a:p:I:chV"); switch (optchar) { case 'H': @@ -1733,6 +1733,10 @@ int main(int argc, char **argv) exec_join = 1; break; + case 'w': + restart_sec = atoi(optarg); + break; + case 'a': strncpy(exec_addr, optarg, 63); break; -- cgit