fca8be156d
feedback/ok brad@ (maintainer), tested/ok merdely@ on similar diff
21 lines
575 B
Plaintext
21 lines
575 B
Plaintext
$OpenBSD: patch-pidgin_gtkmain_c,v 1.5 2008/03/24 08:23:22 steven Exp $
|
|
--- pidgin/gtkmain.c.orig Fri Feb 29 13:09:29 2008
|
|
+++ pidgin/gtkmain.c Sat Mar 22 10:28:40 2008
|
|
@@ -87,6 +87,7 @@ static SnDisplay *sn_display = NULL;
|
|
#endif
|
|
|
|
#ifdef HAVE_SIGNAL_H
|
|
+int real_status;
|
|
|
|
/*
|
|
* Lists of signals we wish to catch and those we wish to ignore.
|
|
@@ -182,6 +183,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];
|