From f515692aa93e40a72aeb1575c135dc31b44704df Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sun, 29 Feb 2004 08:37:21 +0000 Subject: [PATCH] fix a bug where getting OS Mixer volume may fail, and we were closing the fd, but didn't mark anything indicated the fd was close, so chaos ensued. Here, we just remove the close() statement and assume it was just a fluke!! git-svn-id: https://svn.musicpd.org/mpd/trunk@125 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/volume.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/volume.c b/src/volume.c index 706b686b6..16f130650 100644 --- a/src/volume.c +++ b/src/volume.c @@ -118,7 +118,6 @@ int getOssVolumeLevel() { int left, right, level; if(ioctl(volume_ossFd,MIXER_READ(volume_ossControl),&level) < 0) { - while(close(volume_ossFd)<0 && errno==EINTR); ERROR("unable to read volume\n"); return -1; }