ref: 74822f64b072b4fa250690290abb36f31c66f705
parent: c764686bc952d32d53737d3daeb9cc6e15ce2a7e
author: Werner Lemberg <[email protected]>
date: Wed Dec 2 03:32:37 EST 2020
[base] Don't close 'stderr' after logging. * src/base/ftdebug.c, builds/windows/ftdebug.c (ft_logging_deinit): Fix it.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2020-12-02 Werner Lemberg <[email protected]>
+ [base] Don't close 'stderr' after logging.
+
+ * src/base/ftdebug.c, builds/windows/ftdebug.c (ft_logging_deinit):
+ Fix it.
+
+2020-12-02 Werner Lemberg <[email protected]>
+
* submodules/dlg: Updated to commit 9f0c8b22.
2020-12-02 Werner Lemberg <[email protected]>
--- a/builds/windows/ftdebug.c
+++ b/builds/windows/ftdebug.c
@@ -452,7 +452,8 @@
FT_BASE_DEF( void )
ft_logging_deinit( void )
{
- ft_fclose( ft_fileptr );
+ if ( ft_fileptr != stderr )
+ ft_fclose( ft_fileptr );
}
--- a/src/base/ftdebug.c
+++ b/src/base/ftdebug.c
@@ -439,7 +439,8 @@
FT_BASE_DEF( void )
ft_logging_deinit( void )
{
- ft_fclose( ft_fileptr );
+ if ( ft_fileptr != stderr )
+ ft_fclose( ft_fileptr );
}