Update of /cvsroot/mplayer/main/libao2 In directory mail:/var/tmp.root/cvs-serv12071 Modified Files: ao_oss.c Log Message: Set close-on-exec after newer open (in reset func). Patch by Andriy Gapon <agapon@cv-nj.com> Index: ao_oss.c =================================================================== RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- ao_oss.c 21 Mar 2003 16:42:50 -0000 1.39 +++ ao_oss.c 13 Aug 2003 21:04:15 -0000 1.40 @@ -248,6 +248,10 @@ return; } +#if defined(FD_CLOEXEC) && defined(F_SETFD) + fcntl(audio_fd, F_SETFD, FD_CLOEXEC); +#endif + ioctl (audio_fd, SNDCTL_DSP_SETFMT, &ao_data.format); if(ao_data.format != AFMT_AC3) { if (ao_data.channels > 2)
participants (1)
-
Alex Beregszaszi