2008-06-05 06:24:14 -04:00
|
|
|
$OpenBSD: patch-pidgin_gtkmain_c,v 1.7 2008/06/05 10:24:15 ajacoutot Exp $
|
|
|
|
--- pidgin/gtkmain.c.orig Tue May 6 08:04:02 2008
|
|
|
|
+++ pidgin/gtkmain.c Mon May 19 00:40:56 2008
|
|
|
|
@@ -88,6 +88,7 @@ static SnDisplay *sn_display = NULL;
|
2007-05-12 11:19:35 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_SIGNAL_H
|
|
|
|
+int real_status;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Lists of signals we wish to catch and those we wish to ignore.
|
2008-06-05 06:24:14 -04:00
|
|
|
@@ -158,6 +159,8 @@ clean_pid(void)
|
2007-05-12 11:19:35 -04:00
|
|
|
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];
|