From 51d74220e22628126489527776af8c13e339c1ec Mon Sep 17 00:00:00 2001 From: dsmith Date: Mon, 20 Aug 2007 14:02:47 +0000 Subject: 2007-08-20 David Smith From Lai Jiangshan * common.c (parse_args): Make sure the '-c' and '-x' options can't be specified together. --- runtime/staprun/common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/staprun/common.c') diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c index cbe88be0..9056c710 100644 --- a/runtime/staprun/common.c +++ b/runtime/staprun/common.c @@ -104,6 +104,11 @@ void parse_args(int argc, char **argv) "option only has an effect when the module is inserted.\n"); usage(argv[0]); } + + if (target_cmd && target_pid) { + err("You can't specify the '-c' and '-x' options together.\n"); + usage(argv[0]); + } } void usage(char *prog) -- cgit