Skip to content
  • Craig Small's avatar
    Increase watch interval. · 764e27a4
    Craig Small authored
    watch would only use an interval of up to 4294 seconds and silently
    change to this limit. The 4294 seconds is 2^32/10^6 or how many
    microseconds fit into unsigned int.
    
    This change increases the limit to 2^32 seconds which is
    approximately 136 years. This should be ok for now. Anything above
    the old limit now uses sleep() instead of usleep() which only uses
    integers (so 9999.123 seconds will be 9999 seconds)
    
    This bug was first reported in 2006 and included a patch by
    Stephen Kratzer. The patch was updated to fit the current source.
    
    Bug-Debian: http://bugs.debian.org/720445
    References: http://sourceforge.net/mailarchive/message.php?msg_id=4335929
    
    
    
    Signed-off-by: default avatarCraig Small <csmall@enc.com.au>
    764e27a4