scd: Fix for GNU/Linux suspend/resume.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 13 Mar 2018 03:05:57 +0000 (12:05 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 13 Mar 2018 03:05:57 +0000 (12:05 +0900)
commit71e5282c25ba812c7091e587edd721839bc4c2ac
tree416f2b82f342e31aba152a08e07673da54960a64
parent655f0b9ad0138e6f960bf4befaf0eea569256614
scd: Fix for GNU/Linux suspend/resume.

* configure.ac (require_pipe_to_unblock_pselect): Default is "yes".
* scd/scdaemon.c (scd_kick_the_loop): Minor clean up.

--

Normally SIGCONT or SIGUSR2 works for unblocking pselect.  But on my
machine with GNU/Linux, when a machine is suspend/resume-ed, pselect
keeps blocked, while signal itself is delivered.

It's better to use pipe.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
configure.ac
scd/scdaemon.c