DJWLindenaar's fix race condition and some memory leaks patch

git-svn-id: https://svn.musicpd.org/mpd/trunk@3681 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Qball Cow
2005-11-18 12:09:05 +00:00
parent 32e5f4ca2b
commit 4b00c62587
7 changed files with 44 additions and 8 deletions

View File

@@ -122,3 +122,10 @@ int myfprintfCloseAndOpenLogFile() {
return 0;
}
void myfprintfCloseLogFile() {
if(myfprintf_stdLogMode) {
while(fclose(myfprintf_out)<0 && errno==EINTR);
while(fclose(myfprintf_err)<0 && errno==EINTR);
}
}