diff options
author | hunt <hunt> | 2007-10-26 04:39:35 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-26 04:39:35 +0000 |
commit | f31ef69289f1790029092dcf175853536c82b230 (patch) | |
tree | 94aa1b829d467ad70c4db524994aaca906212e8d /runtime/staprun/stapio.c | |
parent | 2532d1d6f9e320ac0924d7d0f94b3d2f524c786e (diff) | |
download | systemtap-steved-f31ef69289f1790029092dcf175853536c82b230.tar.gz systemtap-steved-f31ef69289f1790029092dcf175853536c82b230.tar.xz systemtap-steved-f31ef69289f1790029092dcf175853536c82b230.zip |
2007-10-26 Martin Hunt <hunt@redhat.com>
PR5218
* stapio.c (main): Set initialized properly when
attached.
Diffstat (limited to 'runtime/staprun/stapio.c')
-rw-r--r-- | runtime/staprun/stapio.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |