fs/setfd: correct the return value
Change-Id: I766f3760e7167a579b73673c44b70847ee06850b Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
ef5d204fd2
commit
f56e0e004b
@ -143,6 +143,8 @@ int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
||||
{
|
||||
filep->f_oflags &= ~O_CLOEXEC;
|
||||
}
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -146,6 +146,8 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap)
|
||||
{
|
||||
psock->s_flags &= ~_SF_CLOEXEC;
|
||||
}
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user