Make internal signalfd close on exec
This commit is contained in:
parent
36dc25a350
commit
4cca2b74f4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue