secret-service: Add a timeout when waiting for a client.
authorLudovic Courtès <ludo@gnu.org>
Sun, 27 Sep 2020 15:21:16 +0000 (17:21 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 29 Sep 2020 19:56:27 +0000 (21:56 +0200)
commit4d047853da76dc5fa5dd50ecb750c861342ef47b
treecbb7ddfeff8bbe02265a4ee85528d26bff2737fb
parent1edb7c7eec88904afae49b6b399ff23bbb4d2a28
secret-service: Add a timeout when waiting for a client.

* gnu/build/secret-service.scm (secret-service-receive-secrets)
[wait-for-client]: Call 'select' with a 60s timeout before 'accept'.
Return #f upon timeout.
[read-secrets]: Return FILES on success.
Adjust caller of 'wait-for-client' to handle #f.
gnu/build/secret-service.scm