From 8f4902956168cf0a76ca40747bf0c9068e2824bf Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 24 Sep 2022 18:31:51 -0400 Subject: [PATCH] * src/posixos.c (osync_clear): Don't close invalid FDs. --- src/posixos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posixos.c b/src/posixos.c index 8693b74e..d587f9c8 100644 --- a/src/posixos.c +++ b/src/posixos.c @@ -668,7 +668,7 @@ osync_parse_mutex (const char *mutex) void osync_clear () { - if (osync_handle) + if (osync_handle >= 0) { close (osync_handle); osync_handle = -1;