remove dependency on net_socket so cd_xmms works with nq as well as qw. Seems

to cause alsa some grief which is rather suprising as file decriptor counts
should have taken care of that nicely.
This commit is contained in:
Bill Currie 2001-10-05 20:06:48 +00:00
parent 44fc52bbb6
commit 936b70fe41
1 changed files with 4 additions and 3 deletions

View File

@ -93,8 +93,6 @@ static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean musEnabled = true;
extern int net_socket;
static void I_XMMS_f (void);
@ -111,6 +109,8 @@ I_XMMS_Running (void)
{
int res;
int i;
int fd_size = getdtablesize();
if(!xmms_remote_is_running(0)) {
@ -126,7 +126,8 @@ I_XMMS_Running (void)
// Well, we don't want the child to be running about with
// 27001 still open
close(net_socket);
for (i = 3; i < fd_size; i++)
close(i);
// run xmms
if(execvp(xmms_cmd, xmms_args)) { // Oh dear