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
This commit is contained in:
Warren Dukes 2004-02-29 08:37:21 +00:00
parent 41b63bbe47
commit f515692aa9
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}