remove bogus extra logic for close cancellability
like all other syscalls, close should return to the caller if and only if it successfully performed its action. it is necessary that the application be able to determine whether the close succeeded.
This commit is contained in:
parent
1bc44a4734
commit
61b56a8d21
1 changed files with 1 additions and 3 deletions
|
|
@ -4,7 +4,5 @@
|
|||
|
||||
int close(int fd)
|
||||
{
|
||||
int ret = syscall_cp(SYS_close, fd);
|
||||
if (libc.testcancel) libc.testcancel();
|
||||
return ret;
|
||||
return syscall_cp(SYS_close, fd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue