summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2009-06-09 15:33:06 -0500
committerDavid Teigland <teigland@redhat.com>2009-06-09 15:33:06 -0500
commitc115bd11aa3fb75222ede49b8e6dd4674d2f378a (patch)
treeea884fb627e62d3a9dd4d18c9ee85935d943039e
parent6be50ab21b58a745203e2e2a3c09955f450ee7ce (diff)
downloaddct-stuff-c115bd11aa3fb75222ede49b8e6dd4674d2f378a.tar.gz
dct-stuff-c115bd11aa3fb75222ede49b8e6dd4674d2f378a.tar.xz
dct-stuff-c115bd11aa3fb75222ede49b8e6dd4674d2f378a.zip
cpgx: add -w option
wait this many seconds between kill/restart Signed-off-by: David Teigland <teigland@redhat.com>
-rw-r--r--cpgx/cpgx.c6
1 files changed, 5 insertions, 1 deletions
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;