Skip to content
Commit ff50f6bf authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

os: wrap accept4(SOCK_CLOEXEC)



Some system C libraries do not have SOCK_CLOEXEC, and completely miss
accept4(), too. Provide a fallback for this case.

This changes the behaviour: no error messages are printed now for
failing to set CLOEXEC but the file descriptor is closed.

The unit test for this wrapper is NOT included.

Signed-off-by: default avatarPekka Paalanen <ppaalanen@gmail.com>
parent b2eaf870
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment