allow to reuse set_cloexec

This commit is contained in:
Tobias Bengfort 2025-09-18 12:49:45 +02:00
parent df8e3d819c
commit de700e2a3a
2 changed files with 8 additions and 1 deletions

View file

@ -24,7 +24,7 @@ reset_signals_and_limits(void)
signal(SIGPIPE, SIG_DFL);
}
static bool
bool
set_cloexec(int fd)
{
int flags = fcntl(fd, F_GETFD);