[at-spi2-atk] Correctly remove the socket on exit
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Correctly remove the socket on exit
- Date: Sat, 19 Jul 2014 19:59:48 +0000 (UTC)
commit 27cef138a7497254f8022b83d0475dd899712f6f
Author: Mike Gorse <mgorse suse com>
Date: Sat Jul 19 15:01:42 2014 -0500
Correctly remove the socket on exit
https://bugzilla.gnome.org/show_bug.cgi?id=684076
atk-adaptor/bridge.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 2da29a7..9c2117f 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -452,9 +452,10 @@ remove_socket ()
if (!spi_global_app_data)
return;
- if (spi_global_app_data->app_bus_addr)
+ if (spi_global_app_data->app_bus_addr &&
+ !strncmp (spi_global_app_data->app_bus_addr, "unix:path=", 10))
{
- unlink (spi_global_app_data->app_bus_addr);
+ unlink (spi_global_app_data->app_bus_addr + 10);
g_free (spi_global_app_data->app_bus_addr);
spi_global_app_data->app_bus_addr = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]