Skip to content

Commit

Permalink
libevent: use O_CLOEXEC when creating wake pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed Dec 18, 2022
1 parent 298bc97 commit 1595cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibers/libevent.scm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

(define (make-wake-pipe)
(define (set-nonblocking! port)
(fcntl port F_SETFL (logior O_NONBLOCK (fcntl port F_GETFL))))
(fcntl port F_SETFL (logior O_NONBLOCK O_CLOEXEC (fcntl port F_GETFL))))
(let ((pair (pipe)))
(match pair
((read-pipe . write-pipe)
Expand Down

0 comments on commit 1595cc2

Please sign in to comment.