From 0f5ea700462542c445b1a257b477abdc1d96e4ee Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Fri, 25 Jan 2019 08:04:16 -0500 Subject: MSG_DONTWAIT may not be present on all systems --- erts/emulator/sys/unix/erl_child_setup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erts/emulator/sys/unix/erl_child_setup.c b/erts/emulator/sys/unix/erl_child_setup.c index 129861ebd5..f3662f94c6 100644 --- a/erts/emulator/sys/unix/erl_child_setup.c +++ b/erts/emulator/sys/unix/erl_child_setup.c @@ -491,7 +491,12 @@ main(int argc, char *argv[]) ErtsSysForkerProto proto; errno = 0; if ((res = sys_uds_read(uds_fd, (char*)&proto, sizeof(proto), +#if defined(MSG_DONTWAIT) pipes, 3, MSG_DONTWAIT)) < 0) { +#else + /* XXX: a workaround here? */ + pipes, 3, 0)) < 0) { +#endif if (errno == EINTR) continue; DEBUG_PRINT("erl_child_setup failed to read from uds: %d, %d", res, errno); -- cgit v1.2.3