$OpenBSD: patch-pidgin_gtknotify_c,v 1.13 2011/07/22 06:44:45 jasper Exp $ --- pidgin/gtknotify.c.orig Wed Jun 22 03:32:30 2011 +++ pidgin/gtknotify.c Wed Jul 13 01:09:31 2011 @@ -1222,7 +1222,16 @@ uri_command(const char *command, gboolean sync) g_error_free(error); } else +#ifdef HAVE_SIGNAL_H + { + extern int real_status; + + if (WIFEXITED(real_status)) + ret = WEXITSTATUS(real_status); + } +#else ret = status; +#endif } else {