fix end of process life
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Jun 2006 19:35:51 +0000 (19:35 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 7 Jun 2006 19:35:51 +0000 (19:35 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1905 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/lttv/lttv/state.c

index b174ecf2553838d6eb9c0d0dde4e7887edf4d747..43ff03bc8b6d5eded3999f13a927c1f075771816 100644 (file)
@@ -23,7 +23,7 @@
 AC_PREREQ(2.57)
 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
 #AC_WITH_LTDL  # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.45-04062006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.46-07062006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index 89beda3c82c634dd0cdf7ebc3a971d48fd44cb68..9b3c0822586e1c6029b4e3f6a8fb54da583f20e8 100644 (file)
@@ -1692,13 +1692,14 @@ static gboolean process_exit(void *hook_data, void *call_data)
   guint pid;
   guint cpu = s->cpu;
   LttvTraceState *ts = (LttvTraceState*)s->parent.t_context;
-  LttvProcessState *process = ts->running_process[cpu];
+  LttvProcessState *process; // = ts->running_process[cpu];
 
   pid = ltt_event_get_unsigned(e, thf->f1);
 
   // FIXME : Add this test in the "known state" section
   // g_assert(process->pid == pid);
 
+  process = lttv_state_find_process(ts, ANY_CPU, pid);
   if(likely(process != NULL)) {
     process->state->s = LTTV_STATE_EXIT;
   }
@@ -1743,9 +1744,8 @@ static gboolean process_free(void *hook_data, void *call_data)
         break;
       }
     }
-    //if(i == num_cpus) /* process is not scheduled */
-      //exit_process(s, process);      // do nothing : wait for the schedchange to
-                       //delete the process.
+    if(i == num_cpus) /* process is not scheduled */
+      exit_process(s, process);
   }
 
   return FALSE;
This page took 0.027438 seconds and 4 git commands to generate.