57a8693 Give ODS socket a bit of time

Authored and Committed by cheimes 6 years ago
    Give ODS socket a bit of time
    
    ipa-ods-exporter uses systemd socket activation. The script uses
    select() to check if the socket is readable. A timeout of 0 is a bit too
    aggressive. Sometimes select() doesn't consider the systemd socket as
    readable. This causes ODS to fail silently
    
    A timeout of one second seems to remove the problem. A proper error code
    also signals that something went wrong.
    
    Closes: https://pagure.io/freeipa/issue/7378
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>