Test correctly for EBADF.
This commit is contained in:
parent
83644a3093
commit
b537e81a35
|
@ -531,7 +531,7 @@ s48_value scsh_close(s48_value sch_fdes)
|
|||
int retval = close (s48_extract_fixnum (sch_fdes));
|
||||
if (retval == 0)
|
||||
return S48_TRUE;
|
||||
else if (retval == EBADF)
|
||||
else if (errno == EBADF)
|
||||
return S48_FALSE;
|
||||
else s48_raise_os_error_1 (errno, sch_fdes);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue