$OpenBSD: patch-pidgin_gtkmain_c,v 1.4 2007/10/01 22:03:30 merdely Exp $ --- pidgin/gtkmain.c.orig Fri Sep 14 00:45:41 2007 +++ pidgin/gtkmain.c Tue Sep 18 20:13:19 2007 @@ -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() 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];