* src/posixos.c (osync_clear): Don't close invalid FDs.

This commit is contained in:
Paul Smith 2022-09-24 18:31:51 -04:00
parent f7ed583675
commit 8f49029561

View file

@ -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;