Non-SFI NaCl does not allow setting the FD_CLOEXEC flag on an fd |
||
Issue descriptionThe sequence const int flags = fcntl(fd, F_GETFD); fcntl(fd, F_SETFD, flags | FD_CLOEXEC); causes a SIGSYS in Non-SFI NaCl, although it seems like the intention is to allow it: https://cs.chromium.org/chromium/src/native_client/src/nonsfi/linux/linux_sys_private.c?q=linux_sys_private.c&sq=package:chromium&dr&l=453 . This caused https://codereview.chromium.org/2394413002/ to be reverted.
,
Oct 7 2016
I misread the code originally. The issue lies in fcntl(fd, F_GETFD) -- that's the one that's not allowed. I'll simply assume that the flags are 0 in Non-SFI NaCl.
,
Oct 7 2016
Also happy to just allow F_GETFD in nonsfi nacl as well, though in this case, both solutions are equivalent because FD_CLOEXEC is the only supported fd flag at the moment. |
||
►
Sign in to add a comment |
||
Comment 1 by dcheng@chromium.org
, Oct 7 2016