From 6f54e0f408e53407304ec6299e0f022401486b3c Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 7 Jun 2006 19:35:51 +0000 Subject: [PATCH] fix end of process life git-svn-id: http://ltt.polymtl.ca/svn@1905 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/configure.in | 2 +- ltt/branches/poly/lttv/lttv/state.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ltt/branches/poly/configure.in b/ltt/branches/poly/configure.in index b174ecf2..43ff03bc 100644 --- a/ltt/branches/poly/configure.in +++ b/ltt/branches/poly/configure.in @@ -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 diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 89beda3c..9b3c0822 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -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; -- 2.34.1