set the ocloseonexec flag