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;