Skip to content
  • Andrew Gregory's avatar
    wrap fgets to retry on EINTR · c792262b
    Andrew Gregory authored and Allan McRae's avatar Allan McRae committed
    
    
    The read() underlying fgets() can be interrupted by a signal handler
    causing fgets() to return NULL.  Before we started handling SIGWINCH,
    the odds of interrupting a read were low and typically resulted in
    termination anyway.  Replace all fgets calls with a wrapper that retries
    in EINTR.
    
    Signed-off-by: default avatarAndrew Gregory <andrew.gregory.8@gmail.com>
    c792262b