• Alexey Botchkov's avatar
    MDEV-21385 PAM v2 plugin produces lots of zombie processes. · 873eb4a3
    Alexey Botchkov authored
    The auth_pam_tool that is executed from pam_auth() can be still
    not finished by the time we do the waitpid() there.
    As we use WNOHANG option for the waitpid(), it didn't wait and
    left the zombie process. So let's do the loop of waitpid() with the
    limited number of sleeps.
    873eb4a3
auth_pam.c 6.71 KB