liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 32bf80c6fa1c43b706a6996abbc4e004551d29f7
parent 12275f68968228b9d5490d9f70df1440855ddfba
Author: Daniel Barlow <dan@telent.net>
Date:   Thu,  5 Sep 2024 10:05:13 +0100

devout: unlink socket pathname before binding

Diffstat:
Mpkgs/devout/devout.fnl | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkgs/devout/devout.fnl b/pkgs/devout/devout.fnl @@ -131,6 +131,7 @@ (fn unix-socket [name] (let [addr (string.pack "=Hz" AF_LOCAL name) fd (check-errno (ll.socket AF_LOCAL SOCK_STREAM 0))] + (os.remove name) (check-errno (ll.bind fd addr)) (check-errno (ll.listen fd 32)) fd))