[Mplayer-cvslog] CVS: main/libao2 ao_oss.c,1.33,1.34
Richard Felker CVS
rfelker at mplayerhq.hu
Thu Nov 28 17:14:25 CET 2002
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv10993/libao2
Modified Files:
ao_oss.c
Log Message:
avoid giving a /dev/dsp fd to child processes!!
(menu exec, xscreensaver nonsense, etc)
other parts of mplayer should be fixed like this as well!
Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- ao_oss.c 1 Nov 2002 17:46:42 -0000 1.33
+++ ao_oss.c 28 Nov 2002 16:14:08 -0000 1.34
@@ -121,6 +121,10 @@
return 0;
}
#endif
+
+#if defined(FD_CLOEXEC) && defined(F_SETFD)
+ fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
+#endif
ao_data.bps=channels;
if(format != AFMT_U8 && format != AFMT_S8)
More information about the MPlayer-cvslog
mailing list