guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[shepherd] 03/10: shepherd: Mark client connection sockets as SOCK_CLOEX


From: Ludovic Courtès
Subject: [shepherd] 03/10: shepherd: Mark client connection sockets as SOCK_CLOEXEC.
Date: Wed, 7 Sep 2022 17:19:10 -0400 (EDT)

civodul pushed a commit to branch master
in repository shepherd.

commit d9e6194124b6c2bc3974f226e7dc8cd8ef593e18
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Sep 7 12:18:54 2022 +0200

    shepherd: Mark client connection sockets as SOCK_CLOEXEC.
    
    * modules/shepherd.scm (run-daemon): Pass SOCK_CLOEXEC to 'accept'.
---
 modules/shepherd.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/shepherd.scm b/modules/shepherd.scm
index a6a9246..6e2b0a7 100644
--- a/modules/shepherd.scm
+++ b/modules/shepherd.scm
@@ -213,7 +213,7 @@ already ~a threads running, disabling 'signalfd' support")
 
          ;; Enter some sort of a REPL for commands.
          (let next-command ()
-           (match (accept sock)
+           (match (accept sock SOCK_CLOEXEC)
              ((command-source . client-address)
               (setvbuf command-source 'block 1024)
               (spawn-fiber



reply via email to

[Prev in Thread] Current Thread [Next in Thread]