mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 02:38:50 +00:00
Merge pull request #2107 from aria2/dont-close-stderr-stdout
Do not close stdout and stderr
This commit is contained in:
@@ -86,7 +86,9 @@ int BufferedFile::onClose()
|
||||
#else // __MINGW32__
|
||||
_commit(fileno(fp_));
|
||||
#endif // __MINGW32__
|
||||
rv = fclose(fp_);
|
||||
if (fp_ != stdin && fp_ != stderr) {
|
||||
rv = fclose(fp_);
|
||||
}
|
||||
fp_ = nullptr;
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user