Currently, in Graphene we don't save the O_NONBLOCK flag for the write end of the pipe. We set the O_NONBLOCK flag for the PAL_HANDLE but this isn't propagated to the SHIM_HANDLE when creating pipe. This commit fixes the corner case.
Also, updated the pipe_nonblocking regression test to catch this corner case.
How to test this PR?
Please run both graphene-direct and graphene-sgx regression tests.
Description of the changes
Currently, in Graphene we don't save the
O_NONBLOCK
flag for the write end of the pipe. We set theO_NONBLOCK
flag for the PAL_HANDLE but this isn't propagated to the SHIM_HANDLE when creating pipe. This commit fixes the corner case.Also, updated the
pipe_nonblocking
regression test to catch this corner case.How to test this PR?
Please run both
graphene-direct
andgraphene-sgx
regression tests.This change is