commit 99e08eaced30fc80c91be9fdb8635409a4b93500 from: Alexander Barton date: Tue Oct 19 20:17:12 2010 UTC Only try to set FD_CLOEXEC if this flag is defined A/UX 3.x doesn't implement this constant, for example. commit - 5f2bc55d36810499a4533589acb45839f4721c84 commit + 99e08eaced30fc80c91be9fdb8635409a4b93500 blob - 6843899d5b61e280895e20577072c98282b464f9 blob + 411b383ef3ed6393d63b5417e2f851119f1f008f --- src/ngircd/io.c +++ src/ngircd/io.c @@ -791,7 +791,9 @@ io_setcloexec(int fd) int flags = fcntl(fd, F_GETFD); if (flags == -1) return false; +#ifdef FD_CLOEXEC flags |= FD_CLOEXEC; +#endif return fcntl(fd, F_SETFD, flags) == 0; }