* lib/commonio.c: Ignore the return value of close when a

failure is reported.
This commit is contained in:
nekral-guest 2010-03-18 00:00:05 +00:00
parent 8acf9cd11d
commit 43211abb65

View File

@ -565,7 +565,7 @@ int commonio_open (struct commonio_db *db, int mode)
if (fd >= 0) {
#ifdef WITH_TCB
if (tcb_is_suspect (fd) != 0) {
close (fd);
(void) close (fd);
errno = EINVAL;
return 0;
}