mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-12 08:38:47 +00:00
* src/posixos.c (osync_clear): Don't close invalid FDs.
This commit is contained in:
parent
f7ed583675
commit
8f49029561
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@ osync_parse_mutex (const char *mutex)
|
||||||
void
|
void
|
||||||
osync_clear ()
|
osync_clear ()
|
||||||
{
|
{
|
||||||
if (osync_handle)
|
if (osync_handle >= 0)
|
||||||
{
|
{
|
||||||
close (osync_handle);
|
close (osync_handle);
|
||||||
osync_handle = -1;
|
osync_handle = -1;
|
||||||
|
|
Loading…
Reference in a new issue