mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
hosted: Use O_CLOEXEC for all open() and "e" for fopen() calls
This way we'll automatically close the files upon exec() Change-Id: Ic0daca8fb56432830de4a2f4a86a77337121ecc7
This commit is contained in:
parent
4f8736909a
commit
5cfd3ae4e6
14 changed files with 27 additions and 31 deletions
|
@ -141,7 +141,7 @@ static void write_to_soundcard(struct pcm_udata *udata)
|
|||
{
|
||||
#ifdef DEBUG
|
||||
if (debug_audio && (udata->debug == NULL)) {
|
||||
udata->debug = fopen("audiodebug.raw", "ab");
|
||||
udata->debug = fopen("audiodebug.raw", "abe");
|
||||
DEBUGF("Audio debug file open\n");
|
||||
}
|
||||
#endif
|
||||
|
@ -364,7 +364,7 @@ void pcm_play_dma_init(void)
|
|||
#ifdef DEBUG
|
||||
udata.debug = NULL;
|
||||
if (debug_audio) {
|
||||
udata.debug = fopen("audiodebug.raw", "wb");
|
||||
udata.debug = fopen("audiodebug.raw", "wbe");
|
||||
DEBUGF("Audio debug file open\n");
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue