mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
'finalization_thread_proc' sets errno before calling 'perror'.
* libguile/finalizers.c (finalization_thread_proc): Set 'errno' before calling 'perror'.
This commit is contained in:
parent
d3d7696072
commit
1fbe89f7bd
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright 2012-2014,2018-2019
|
/* Copyright 2012-2014,2018-2020
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Guile.
|
This file is part of Guile.
|
||||||
|
@ -221,6 +221,7 @@ finalization_thread_proc (void *unused)
|
||||||
{
|
{
|
||||||
if (data.err != EINTR)
|
if (data.err != EINTR)
|
||||||
{
|
{
|
||||||
|
errno = data.err;
|
||||||
perror ("error in finalization thread");
|
perror ("error in finalization thread");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue