2009-09-08 02:35:24 -04:00
|
|
|
$OpenBSD: patch-pidgin_gtkmain_c,v 1.9 2009/09/08 06:35:24 steven Exp $
|
|
|
|
--- pidgin/gtkmain.c.orig Sat Sep 5 17:12:04 2009
|
|
|
|
+++ pidgin/gtkmain.c Mon Sep 7 12:31:33 2009
|
|
|
|
@@ -90,6 +90,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.
|
2009-09-08 02:35:24 -04:00
|
|
|
@@ -160,6 +161,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];
|