From: Paul Smith Date: Sat, 24 Sep 2022 22:31:51 +0000 (-0400) Subject: * src/posixos.c (osync_clear): Don't close invalid FDs. X-Git-Tag: 4.3.91~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f4902956168cf0a76ca40747bf0c9068e2824bf;p=thirdparty%2Fmake.git * src/posixos.c (osync_clear): Don't close invalid FDs. --- 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;