From 3639e8a7726365229563d85bd160a06cd24c8734 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 18 Feb 2002 10:10:18 +0000 Subject: 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. --- audio/esound/files/patch-ad | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'audio/esound') 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 #include #include @@ -9,7 +12,16 @@ #include -@@ -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 ); -- cgit v1.2.3