+2004-12-02 Bill Haneman <billh@gnome.org>
+
+ Patch from Padraig O'Briain <padraig.obriain@sun.com>
+ * atk-bridge/bridge.c:
+ (atk_bridge_init): Save the pid when we start, to detect forks.
+ (spi_atk_bridge_exit_func): Don't call the cleanup routines
+ if we're in a forked pid.
+
2004-10-09 Bill Haneman <billh@gnome.org>
* idl/Accessibility_LoginHelper.idl:
#include <string.h>
#include <stdio.h>
+#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <libbonobo.h>
extern void gnome_accessibility_module_shutdown (void);
static int atk_bridge_initialized = FALSE;
+static pid_t atk_bridge_pid = 0;
static guint atk_bridge_focus_tracker_id = 0;
static guint atk_bridge_key_event_listener_id = 0;
static GArray *listener_ids = NULL;
return 0;
}
atk_bridge_initialized = TRUE;
+ atk_bridge_pid = getpid ();
if (g_getenv ("ATK_BRIDGE_REDIRECT_LOG"))
{
return;
}
this_app = NULL;
+ if (atk_bridge_pid != getpid ())
+ {
+ _exit (0);
+ }
/*
* Check whether we still have windows which have not been deleted.