dispatchrun / wasi-go

A Go implementation of the WebAssembly System Interface (WASI)
Apache License 2.0
124 stars 7 forks source link

set O_CLOEXEC on sockets created by accept #9

Closed achille-roussel closed 1 year ago

achille-roussel commented 1 year ago

This PR addresses one of the TODO I had left in the unix provider.

I unified the models between the internal pipe and accept functions, both accept a flags argument now to configure whether the file descriptors will be set to non-blocking mode.