From f31ef69289f1790029092dcf175853536c82b230 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 26 Oct 2007 04:39:35 +0000 Subject: [PATCH] 2007-10-26 Martin Hunt PR5218 * stapio.c (main): Set initialized properly when attached. --- runtime/staprun/ChangeLog | 5 +++++ runtime/staprun/stapio.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog index f03f36068..7c6b89adf 100644 --- a/runtime/staprun/ChangeLog +++ b/runtime/staprun/ChangeLog @@ -1,3 +1,8 @@ +2007-10-26 Martin Hunt + PR5218 + * stapio.c (main): Set initialized properly when + attached. + 2007-10-12 Martin Hunt Changes to separate the symbols from the command channel. diff --git a/runtime/staprun/stapio.c b/runtime/staprun/stapio.c index 696167af8..ee30a1a16 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); -- 2.43.5