From f31ef69289f1790029092dcf175853536c82b230 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 26 Oct 2007 04:39:35 +0000 Subject: 2007-10-26 Martin Hunt PR5218 * stapio.c (main): Set initialized properly when attached. --- runtime/staprun/stapio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/staprun/stapio.c') diff --git a/runtime/staprun/stapio.c b/runtime/staprun/stapio.c index 696167af..ee30a1a1 100644 --- a/runtime/staprun/stapio.c +++ b/runtime/staprun/stapio.c @@ -59,7 +59,11 @@ int main(int argc, char **argv) exit(1); initialized = 1; - + if (attach_mod) { + /* already started */ + initialized++; + } + if (stp_main_loop()) { err("ERROR: Couldn't enter main loop. Exiting.\n"); exit(1); -- cgit