From: hunt Date: Fri, 26 Oct 2007 04:39:35 +0000 (+0000) Subject: 2007-10-26 Martin Hunt X-Git-Tag: release-0.6~41 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f31ef69289f1790029092dcf175853536c82b230;p=systemtap.git 2007-10-26 Martin Hunt PR5218 * stapio.c (main): Set initialized properly when attached. --- 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);