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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user