gaim/gaim

Patch #949998: Remove stale gaim-remote sockets.
oldstatus
2005-02-21, Ethan Blanton
256b697c2085
Parents 847935635b74
Children c9f15243526a
Patch #949998: Remove stale gaim-remote sockets.
--- a/plugins/gaim-remote/remote.c Sun Feb 20 17:45:12 2005 -0500
+++ b/plugins/gaim-remote/remote.c Mon Feb 21 09:30:36 2005 -0500
@@ -663,6 +663,9 @@
g_snprintf(saddr.sun_path, sizeof(saddr.sun_path), "%s" G_DIR_SEPARATOR_S "gaim_%s.%d",
g_get_tmp_dir(), g_get_user_name(), gaim_session);
+ /* Unlink any existing socket for this session */
+ unlink (saddr.sun_path);
+
if (bind(fd, (struct sockaddr *)&saddr, sizeof(saddr)) != -1)
listen(fd, 100);
else {