mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
web server: use CLOEXEC
* module/web/server/http.scm (http-read): Pass SOCK_CLOEXEC to `accept'.
This commit is contained in:
parent
d7bbda6fd7
commit
6fa75029fa
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@
|
|||
;; A new client. Add to set, poll, and loop.
|
||||
;;
|
||||
;; FIXME: preserve meta-info.
|
||||
(let ((client (accept (poll-set-port poll-set idx))))
|
||||
(let ((client (accept (poll-set-port poll-set idx) SOCK_CLOEXEC)))
|
||||
;; Buffer input and output on this port.
|
||||
(setvbuf (car client) _IOFBF)
|
||||
;; From "HOP, A Fast Server for the Diffuse Web", Serrano.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue