ca5e20e14b
* various fixes and a fix for CVE-2011-1091 from brad (MAINTAINER)
21 lines
533 B
Plaintext
21 lines
533 B
Plaintext
$OpenBSD: patch-pidgin_gtkmain_c,v 1.12 2011/03/13 17:27:11 jasper Exp $
|
|
--- pidgin/gtkmain.c.orig Thu Mar 10 21:20:28 2011
|
|
+++ pidgin/gtkmain.c Fri Mar 11 18:58:56 2011
|
|
@@ -78,6 +78,7 @@
|
|
|
|
|
|
#ifdef HAVE_SIGNAL_H
|
|
+int real_status;
|
|
|
|
/*
|
|
* Lists of signals we wish to catch and those we wish to ignore.
|
|
@@ -151,6 +152,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];
|