Add O_CLOEXEC to open calls
Merge pull request #1670 from arrbee/open-cloexec

Add O_CLOEXEC to open calls