diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-11-22 13:59:06 +0200 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-11-22 13:59:06 +0200 |
commit | fa76afe6edbc6572f179d1dcf859f013e85ef7dd (patch) | |
tree | 3d747b93e586163a003bf3d4a9fa8b7bd31f7726 /innobase | |
parent | 76ea57bc760bd32351071d1a9c44c89bc2a3ecb1 (diff) | |
download | mariadb-git-fa76afe6edbc6572f179d1dcf859f013e85ef7dd.tar.gz |
ut0mem.c:
Flush stderr if we run out of memory, so that the error message more probably finds its way to the error log
innobase/ut/ut0mem.c:
Flush stderr if we run out of memory, so that the error message more probably finds its way to the error log
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/ut/ut0mem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/innobase/ut/ut0mem.c b/innobase/ut/ut0mem.c index 2a7643551ad..03f15031fdf 100644 --- a/innobase/ut/ut0mem.c +++ b/innobase/ut/ut0mem.c @@ -90,6 +90,12 @@ ut_malloc_low( "InnoDB: on Linux we get a stack trace.\n", n, ut_total_allocated_memory, errno); + /* Flush stderr to make more probable that the error + message gets in the error file before we generate a seg + fault */ + + fflush(stderr); + os_fast_mutex_unlock(&ut_list_mutex); /* Make an intentional seg fault so that we get a stack |