Make internal signalfd close on exec

This commit is contained in:
Laurence Withers 2007-11-13 12:45:46 +00:00
parent 36dc25a350
commit 4cca2b74f4
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ struct lwevent_signal* lwevent_signalfd(const sigset_t* mask, lwevent_signalcb c
return 0;
}
if(lwevent_nonblock(fd)) {
if(lwevent_nonblock(fd) || lwevent_cloexec(fd)) {
TEMP_FAILURE_RETRY( close(fd) );
free(si);
return 0;