# HG changeset patch # User rfelker # Date 1038500048 0 # Node ID 322f1a91a5e780db9ec640bb6f17a6bc27011bd5 # Parent c7fa49f1de0afacd2d53e13a41edde82945e3ea4 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! diff -r c7fa49f1de0a -r 322f1a91a5e7 libao2/ao_oss.c --- a/libao2/ao_oss.c Thu Nov 28 00:44:24 2002 +0000 +++ b/libao2/ao_oss.c Thu Nov 28 16:14:08 2002 +0000 @@ -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)