"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <Todd.Miller@sudo.ws>
Subject:
Re: [PATCH portable] portable: build closefrom unconditionally
To:
Stefan Sperling <stsp@stsp.name>
Cc:
Anna “CyberTailor” <cyber+misc@sysrq.in>, gameoftrees@openbsd.org
Date:
Thu, 09 Dec 2021 08:49:19 -0700

Download raw body.

Thread
I think you should just not check the return value of closefrom().
It is void on Solaris where it originated, OpenBSD is the outlier
here because it is a syscall.

Or you can just set the close-on-exec flag for all the fds you open
and avoid closefrom() altogether.

 - todd