aboutsummaryrefslogtreecommitdiffstats
path: root/audio/esound/files
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-02-18 18:10:18 +0800
committersobomax <sobomax@FreeBSD.org>2002-02-18 18:10:18 +0800
commit21372f07ce20c20a37b62c76d399b9e0bfb4cdc8 (patch)
tree779b3f221e8275a7ad4d2aebaaca77e669c58388 /audio/esound/files
parentdaa8c1221120df69782c8ecab40c33d9e52ca37c (diff)
downloadfreebsd-ports-gnome-21372f07ce20c20a37b62c76d399b9e0bfb4cdc8.tar.gz
freebsd-ports-gnome-21372f07ce20c20a37b62c76d399b9e0bfb4cdc8.tar.zst
freebsd-ports-gnome-21372f07ce20c20a37b62c76d399b9e0bfb4cdc8.zip
Prevent /bin/sh from hanging around along with esd just polluting ps(1) output.
This is more a "style" fix than anything else, so that leave PORTREVISION intact.
Diffstat (limited to 'audio/esound/files')
-rw-r--r--audio/esound/files/patch-ad20
1 files changed, 16 insertions, 4 deletions
diff --git a/audio/esound/files/patch-ad b/audio/esound/files/patch-ad
index 9d85c98df16a..a4f484e8f3e6 100644
--- a/audio/esound/files/patch-ad
+++ b/audio/esound/files/patch-ad
@@ -1,6 +1,9 @@
---- esdlib.c.orig Thu Jun 29 23:31:04 2000
-+++ esdlib.c Thu Jun 29 23:31:21 2000
-@@ -19,6 +19,8 @@
+
+$FreeBSD$
+
+--- esdlib.c.orig Sun Sep 9 21:56:36 2001
++++ esdlib.c Mon Feb 18 12:00:57 2002
+@@ -20,6 +20,8 @@
#include <arpa/inet.h>
#include <errno.h>
#include <sys/wait.h>
@@ -9,7 +12,16 @@
#include <sys/un.h>
-@@ -1421,4 +1423,34 @@
+@@ -651,7 +653,7 @@
+ setsid();
+ cmd = malloc(sizeof("esd ") + esd_spawn_options?strlen(esd_spawn_options):0);
+
+- sprintf(cmd, "esd %s -spawnfd %d", esd_spawn_options?esd_spawn_options:"", esd_pipe[1]);
++ sprintf(cmd, "exec esd %s -spawnfd %d", esd_spawn_options?esd_spawn_options:"", esd_pipe[1]);
+
+ execl("/bin/sh", "/bin/sh", "-c", cmd, NULL);
+ perror("execl");
+@@ -1411,4 +1413,34 @@
*/
return close( esd );