fix wait fork
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 2 Oct 2006 21:46:30 +0000 (21:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 2 Oct 2006 21:46:30 +0000 (21:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2147 04897980-b3bd-0310-b5e0-8ef037075253

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

index de2f16ed1f69a146e8355dc1186d1839bbb7d398..06e30d141ace2aad92416feebf32a65ee326aed9 100644 (file)
@@ -1768,7 +1768,7 @@ lttv_state_create_process(LttvTraceState *tcs, LttvProcessState *parent,
   //g_assert(timestamp->tv_sec != 0);
   es->change = *timestamp;
   es->cum_cpu_time = ltt_time_zero;
-  es->s = LTTV_STATE_WAIT_FORK;
+  es->s = LTTV_STATE_MODE_UNKNOWN;
   
   /* Allocate an empty function call stack. If it's empty, use 0x0. */
   process->user_stack = g_array_sized_new(FALSE, FALSE,
@@ -2190,6 +2190,7 @@ static gboolean process_fork(void *hook_data, void *call_data)
     child_process = lttv_state_create_process(ts, process, cpu,
                               child_pid, child_tgid, 
                               LTTV_STATE_UNNAMED, &s->parent.timestamp);
+    child_process->state->s = LTTV_STATE_WAIT_FORK;
   } else {
     /* The process has already been created :  due to time imprecision between
      * multiple CPUs : it has been scheduled in before creation. Note that we
This page took 0.025675 seconds and 4 git commands to generate.