From d4942a23e9af529bb00d29af0f3b07ce58aae358 Mon Sep 17 00:00:00 2001 From: compudj Date: Mon, 12 Sep 2005 16:13:22 +0000 Subject: [PATCH] re add check un state.c for fork git-svn-id: http://ltt.polymtl.ca/svn@1168 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 930774a4..86847728 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -1260,8 +1260,10 @@ static gboolean process_fork(void *hook_data, void *call_data) /* Mathieu : it seems like the process might have been scheduled in before the * fork, and, in a rare case, might be the current process. This might happen - * in a SMP case where we don't have enough precision on the clocks */ -#if 0 + * in a SMP case where we don't have enough precision on the clocks. + * + * Test reenabled after precision fixes on time. (Mathieu) */ + zombie_process = lttv_state_find_process(ts, ANY_CPU, child_pid); if(unlikely(zombie_process != NULL)) { @@ -1276,7 +1278,7 @@ static gboolean process_fork(void *hook_data, void *call_data) exit_process(s, zombie_process); } -#endif //0 + g_assert(process->pid != child_pid); // FIXME : Add this test in the "known state" section // g_assert(process->pid == parent_pid); -- 2.34.1