lslebodn / SSSD / sssd

Forked from SSSD/sssd 7 years ago
Clone

a18a6f0 util/server: Fix the timing to close() the PID file

1 file Authored by miztake 4 years ago, Committed by pbrezina 4 years ago,
    util/server: Fix the timing to close() the PID file
    
    The PID file is closed just before pidfile function returns.
    However, if close() is called immediately after read()/write(),
    there is no need to call close() at multiple places.
    
    Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
    
        
file modified
+3 -9