[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53580: /var/run/shepherd/socket is missing on an otherwise functiona
From: |
Ludovic Courtès |
Subject: |
bug#53580: /var/run/shepherd/socket is missing on an otherwise functional system |
Date: |
Sun, 11 Jun 2023 16:18:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Attila Lendvai <attila@lendvai.name> skribis:
> (define (call-with-server-socket file-name proc)
> "Call PROC, passing it a listening socket at FILE-NAME and deleting the
> socket file at FILE-NAME upon exit of PROC. Return the values of PROC."
> (let ((sock (open-server-socket file-name)))
> (dynamic-wind
> noop
> (lambda () (proc sock))
> (lambda ()
> (close sock)
> (catch-system-error (delete-file file-name))))))
For the record, ‘dynamic-wind’ here was replaced by ‘catch’ in
46790f9d924af2a9521adccb9e6db6afd9c1a2e7, which corresponds to the
introduction of Fibers in 0.9.x.
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#53580: /var/run/shepherd/socket is missing on an otherwise functional system,
Ludovic Courtès <=