diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-03-22 14:16:10 +0200 |
---|---|---|
committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-25 09:37:42 +0300 |
commit | ff50f6bfc44bd072aa8806f976718d30468fa2c2 (patch) | |
tree | 69a2f98133e4b744acb199bfde73dd3ea6d90cc3 /tests | |
parent | b2eaf870cf8e8cb842ba29ea4718b596101252a6 (diff) |
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: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/os-wrappers-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c index 967eb83..9c4e7b2 100644 --- a/tests/os-wrappers-test.c +++ b/tests/os-wrappers-test.c @@ -382,3 +382,5 @@ TEST(os_wrappers_epoll_create_cloexec_fallback) init_fallbacks(1); do_os_wrappers_epoll_create_cloexec(2); } + +/* FIXME: add tests for wl_os_accept_cloexec() */ |