Return-Path: Message-ID: <45AB9C88.1040808@xmission.com> Date: Mon, 15 Jan 2007 08:23:52 -0700 From: Brad Midgley MIME-Version: 1.0 To: BlueZ development References: <200701150305.07478.bluez-devel@huitl.de> In-Reply-To: <200701150305.07478.bluez-devel@huitl.de> Subject: Re: [Bluez-devel] a2dpd: cmdplay fails: "No such application: 'amarok player play'" Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Robert this idea looks ok. The extra fork() could be removed. Brad > Index: a2dpd_ipc.c > =================================================================== > RCS file: /cvsroot/bluetooth-alsa/plugz/alsa-plugins/a2dpd/a2dpd_ipc.c,v > retrieving revision 1.3 > diff -u -r1.3 a2dpd_ipc.c > --- a2dpd_ipc.c 12 Jan 2007 16:34:01 -0000 1.3 > +++ a2dpd_ipc.c 15 Jan 2007 02:02:15 -0000 > @@ -384,8 +384,10 @@ > close_server_socket_on_fork(); > > // Replace children with new process > - i = execlp(command, command, argv[0], NULL); > - DBG("execlp failed %s=%d (errno=%d:%s)", cmd, > i, errno, strerror(errno)); > + system(cmd); > + exit(0); > break; > case -1: > // failed ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel