]> sourceware.org Git - systemtap.git/commitdiff
2007-10-26 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Fri, 26 Oct 2007 04:39:35 +0000 (04:39 +0000)
committerhunt <hunt>
Fri, 26 Oct 2007 04:39:35 +0000 (04:39 +0000)
PR5218
* stapio.c (main): Set initialized properly when
attached.

runtime/staprun/ChangeLog
runtime/staprun/stapio.c

index f03f360686fd783d18a226547a73b1f5019c599b..7c6b89adfb189c45e2321a434d8127c7cbcbf213 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-26  Martin Hunt  <hunt@redhat.com>
+       PR5218
+       * stapio.c (main): Set initialized properly when
+       attached.
+
 2007-10-12  Martin Hunt  <hunt@redhat.com>
        Changes to separate the symbols from the command channel.
        
index 696167af8d0e43c174c6d673a6201e0c8aac2c2d..ee30a1a1620a9f4733adff503ffb0529cdf6f02e 100644 (file)
@@ -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);
This page took 0.028986 seconds and 5 git commands to generate.