diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-09-06 03:33:51 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-09-06 03:36:54 +0200 |
commit | 828048bfb4561c232dc668897f8203a3540edb0e (patch) | |
tree | 337b12293c86ee7654317c69a4d2e7a06bbbddda /bus | |
parent | a8e281bf091895e22528ed526f02d659df741071 (diff) | |
download | at-spi2-core-828048bfb4561c232dc668897f8203a3540edb0e.tar.gz |
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().
Diffstat (limited to 'bus')
-rw-r--r-- | bus/at-spi-bus-launcher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c index 6cb625cc..57727c15 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]); |