[at-spi2-core: 1/4] at-spi-bus-launcher: clear a11y_bus_pid when failing to read address
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 1/4] at-spi-bus-launcher: clear a11y_bus_pid when failing to read address
- Date: Sun, 8 Sep 2019 17:38:10 +0000 (UTC)
commit 828048bfb4561c232dc668897f8203a3540edb0e
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Fri Sep 6 03:33:51 2019 +0200
at-spi-bus-launcher: clear a11y_bus_pid when failing to read address
This may happen if dbus-daemon spawns but fails to start. In that case after
terminating it we should forget its pid, to avoid trying to terminate it
again at the end of main().
bus/at-spi-bus-launcher.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 6cb625c..57727c1 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -323,6 +323,7 @@ ensure_a11y_bus_daemon (A11yBusLauncher *app, char *config_path)
{
app->a11y_launch_error_message = g_strdup_printf ("Failed to read address: %s", strerror (errno));
kill (app->a11y_bus_pid, SIGTERM);
+ app->a11y_bus_pid = -1;
goto error;
}
close (app->pipefd[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]