[fabbione/kronosnet] c6699d: Add generic util function to set CLOEXEC on fds