diff options
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); |