• 1

Re: One way to combat the leaked-fd problem...

(You also want to declare setFdCoe() in a header someplace, so functions that do depend on open-on-exec can mark Fds explicitly. Or they can use fcntl for it, but this API is simpler. If you always use fcntl elsewhere, then you'll want to mark setFdCoe() "static")

  • 1
?

Log in