openbsd-ports/x11/gnome/nettool/patches/patch-src_callbacks_c
2011-09-12 07:28:52 +00:00

22 lines
599 B
Plaintext

$OpenBSD: patch-src_callbacks_c,v 1.3 2011/09/12 07:28:53 jasper Exp $
--- src/callbacks.c.orig Thu Dec 2 10:26:14 2010
+++ src/callbacks.c Tue May 17 18:06:38 2011
@@ -293,12 +293,11 @@ gn_quit_app (GtkWidget * widget, gpointer data)
{
gint status, pid;
- pid = getpid () + 1;
- while (waitpid (-1, &status, WNOHANG) == 0) {
- if (waitpid (pid, &status, WNOHANG) == 0)
- kill (pid, SIGKILL);
- pid ++;
- }
+ pid = getpid ();
+ if (childpid > 0)
+ kill (childpid, SIGKILL);
+ if (waitpid (pid, &status, WNOHANG) == 0)
+ kill (pid, SIGKILL);
netinfo_progress_indicator_stop (NULL);