GNU bug report logs -
#49056
[PATCH] services: pcscd: Fix daemon signal handling.
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Wed, 16 Jun 2021 06:39:02 UTC
Severity: normal
Tags: patch
Done: Brice Waegeneire <brice <at> waegenei.re>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 49056 <at> debbugs.gnu.org (full text, mbox):
Hi,
Brice Waegeneire <brice <at> waegenei.re> skribis:
> "pcscd" wouldn't handle SIGTERM as it inherited ignoring this
> signal (and others) from its parent shepherd. The constructor
> make-forkexec, restore signal handling. Fixes
> <https://issues.guix.gnu.org/45202>.
>
> * gnu/services/security-token.scm (pcscd)[start]: Use
> make-fork-exec-constructor to start "pcscd".
Well done!
> + (start #~(lambda args
> (let ((socket "/run/pcscd/pcscd.comm"))
> (when (file-exists? socket)
> (delete-file socket)))
> - (invoke #$(file-append pcsc-lite "/sbin/pcscd"))
> - (call-with-input-file "/run/pcscd/pcscd.pid" read)))
> + (apply (make-forkexec-constructor
> + (list #$(file-append pcsc-lite "/sbin/pcscd")
> + "--foreground")
> + #:log-file "/var/log/pcscd.log")
> + args)))
We can probably call ‘fork+exec-command’ directly instead of going
through ‘make-forkexec-constructor’, no?
Otherwise LGTM, thanks!
Ludo’.
This bug report was last modified 3 years and 324 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.