From 128daca28919cf4ff3d26b0f99a45ccaa17335b5 Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 2 Oct 2006 21:46:30 +0000 Subject: [PATCH] fix wait fork git-svn-id: http://ltt.polymtl.ca/svn@2147 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index de2f16ed..06e30d14 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -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 -- 2.34.1