URL:
https://github.com/SSSD/sssd/pull/586
Title: #586: SSH: Do not exit abruptly if SSHD closes its end of the pipe before reading
all the SSH keys
sumit-bose commented:
"""
My idea was to not read the output completely, but let sshd ignore that the child was
killed by SIGPIPE if the output was not read completely.
exited_cleanly() has:
if (WIFSIGNALED(status)) {
error("%s %s exited on signal %d", tag, cmd,
WTERMSIG(status));
return -1;
here something like 'if (WIFSIGNALED(status) && WTERMSIG(status) != SIGPIPE)
{' might help to ignore the signal (not tested).
bye,
Sumit
"""
See the full comment at
https://github.com/SSSD/sssd/pull/586#issuecomment-393630181