diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2010-08-12 02:03:03 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2010-08-12 02:03:03 +0800 |
commit | 3d217c70e6bc49e0302221c564883777e833dd78 (patch) | |
tree | 1e7e50027c61c302f8931e7c3b335a28b0caacb0 /deskutils/xfce4-generic-slider | |
parent | 418ddffcb747e8a871b33263383fcd64de0cffcc (diff) | |
download | freebsd-ports-gnome-3d217c70e6bc49e0302221c564883777e833dd78.tar.gz freebsd-ports-gnome-3d217c70e6bc49e0302221c564883777e833dd78.tar.zst freebsd-ports-gnome-3d217c70e6bc49e0302221c564883777e833dd78.zip |
Provide a patch that prevents generic-slider from leaving a zombie process
behind every time "adjust command" gets executed (every time you modify the
slider).
Diffstat (limited to 'deskutils/xfce4-generic-slider')
-rw-r--r-- | deskutils/xfce4-generic-slider/Makefile | 1 | ||||
-rw-r--r-- | deskutils/xfce4-generic-slider/files/patch-generic-slider.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/deskutils/xfce4-generic-slider/Makefile b/deskutils/xfce4-generic-slider/Makefile index 297a561c6e5b..016c739e2ec6 100644 --- a/deskutils/xfce4-generic-slider/Makefile +++ b/deskutils/xfce4-generic-slider/Makefile @@ -7,6 +7,7 @@ PORTNAME= xfce4-generic-slider PORTVERSION= 0.0.20100604 +PORTREVISION= 1 CATEGORIES= deskutils MASTER_SITES= CRITICAL diff --git a/deskutils/xfce4-generic-slider/files/patch-generic-slider.c b/deskutils/xfce4-generic-slider/files/patch-generic-slider.c new file mode 100644 index 000000000000..74b441607893 --- /dev/null +++ b/deskutils/xfce4-generic-slider/files/patch-generic-slider.c @@ -0,0 +1,23 @@ +--- ./generic-slider.c.orig 2010-06-04 23:25:59.000000000 +0200 ++++ ./generic-slider.c 2010-08-11 19:55:41.000000000 +0200 +@@ -162,15 +162,15 @@ + arglist[num_args - 1] = NULL; + + /* Forks */ +- ++ + pid = fork(); +- if (pid == -1) { +- fprintf(stderr, "Could not fork a new process\n"); +- } else if (pid == 0) { ++ if(pid==0) { ++ wait(); ++ } else { + execvp(arglist[0], arglist); + perror("execvp"); +- _exit(-1); + } ++ + } + + static gint scroll_slider_cb(GtkWidget *widget, GdkEventScroll *event, GList *stupid_hack) { |