From 83514402882c80fe6bc7ac989ca78ad3cb122464 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 2 May 2011 19:23:51 +0200 Subject: fix for spurious "Lock file 'DIR/.lock' is locked by process PID" message Message was caused by concurrent access by abrt-gui (refreshing the list) and wizard (running events). Signed-off-by: Denys Vlasenko --- src/gui-wizard-gtk/wizard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui-wizard-gtk/wizard.c') diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c index ee6c3c39..6e3bec69 100644 --- a/src/gui-wizard-gtk/wizard.c +++ b/src/gui-wizard-gtk/wizard.c @@ -829,9 +829,6 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g } } - /* Inform abrt-gui that it is a good idea to rescan the directory */ - kill(getppid(), SIGCHLD); - /* Stop if exit code is not 0, or no more commands */ if (retval != 0 || spawn_next_command_in_evd(evd) < 0 @@ -839,6 +836,9 @@ static gboolean consume_cmd_output(GIOChannel *source, GIOCondition condition, g VERB1 log("done running event on '%s': %d", g_dump_dir_name, retval); //append_to_textview(evd->tv_log, msg); + /* Inform abrt-gui that it is a good idea to rescan the directory */ + kill(getppid(), SIGCHLD); + for (;;) { if (!evd->more_events) -- cgit