It looks to me like upstream commit [email protected], first released in lightdm 1.21.4, should adequately address this (by retrying the system call on EINTR). Am cherry-picking this into 1.18.3, will test then tag this bug accordingly.
(Note to other would-be cherry-pickers: the commit depends on an earlier one, [email protected].)
