fs/setfd: correct the return value

Change-Id: I766f3760e7167a579b73673c44b70847ee06850b
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2020-06-08 12:18:09 +08:00 committed by Abdelatif Guettouche
parent ef5d204fd2
commit f56e0e004b
2 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,8 @@ int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
{
filep->f_oflags &= ~O_CLOEXEC;
}
ret = OK;
}
break;

View File

@ -146,6 +146,8 @@ int psock_vfcntl(FAR struct socket *psock, int cmd, va_list ap)
{
psock->s_flags &= ~_SF_CLOEXEC;
}
ret = OK;
}
break;