this horrible hack fixes the 2-open-links problem when clicking in a url.

gaim should really fix this.  maintainer and jolan@ ok.
This commit is contained in:
fgsch 2006-06-27 17:32:26 +00:00
parent d029a28f91
commit 93c58c0530
3 changed files with 43 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.89 2006/06/14 01:58:17 fgsch Exp $
# $OpenBSD: Makefile,v 1.90 2006/06/27 17:32:26 fgsch Exp $
SHARED_ONLY= Yes
COMMENT= "Gtk AIM, ICQ, IRC, Jabber, MSN, Yahoo, SILC and Zephyr client"
DISTNAME= gaim-1.5.0
PKGNAME= ${DISTNAME}p5
PKGNAME= ${DISTNAME}p6
SHARED_LIBS= gaim-remote 0.0
CATEGORIES= net

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-src_gtknotify_c,v 1.1 2006/06/27 17:32:26 fgsch Exp $
--- src/gtknotify.c.orig Thu Jun 15 17:21:28 2006
+++ src/gtknotify.c Thu Jun 15 18:12:17 2006
@@ -446,7 +446,16 @@ uri_command(const char *command, gboolea
g_error_free(error);
}
else
+#if HAVE_SIGNAL_H
+ {
+ extern int real_status;
+
+ if (WIFEXITED(real_status))
+ ret = WEXITSTATUS(real_status);
+ }
+#else
ret = status;
+#endif
}
else
{

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_main_c,v 1.3 2006/06/27 17:32:26 fgsch Exp $
--- src/main.c.orig Thu Jun 15 17:21:21 2006
+++ src/main.c Thu Jun 15 17:21:47 2006
@@ -86,6 +86,8 @@ char *opt_away_arg = NULL;
int opt_debug = 0;
#if HAVE_SIGNAL_H
+int real_status;
+
/*
* Lists of signals we wish to catch and those we wish to ignore.
* Each list terminated with -1
@@ -325,6 +327,8 @@ clean_pid(void)
do {
pid = waitpid(-1, &status, WNOHANG);
} while (pid != 0 && pid != (pid_t)-1);
+
+ real_status = status;
if ((pid == (pid_t) - 1) && (errno != ECHILD)) {
char errmsg[BUFSIZ];