763af7a UTIL: exit() the forked process if exec()-ing a child process fails

9 files Authored by jhrozek 3 years ago , Committed by lslebodn 3 years ago ,
    UTIL: exit() the forked process if exec()-ing a child process fails
    
    When exec() fails, we should not attempt to continue, but just kill the
    forked process. The patch adds this logic to the exec_child() and
    exec_child_ex() functions to avoid code duplication
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/3016
    
    Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
    (cherry picked from commit de8815aba87d08b6b7ac5d502dcb1755787e0857)
    
        
file modified
+7 -7
file modified
+15 -15
file modified
+8 -8