• Matt Stancliff's avatar
    Improve error handling around setting ulimits · b5958539
    Matt Stancliff authored
    The log messages about open file limits have always
    been slightly opaque and confusing.  Here's an attempt to
    fix their wording, detail, and meaning.  Users will have a
    better understanding of how to fix very common problems
    with these reworded messages.
    
    Also, we handle a new error case when maxclients becomes less
    than one, essentially rendering the server unusable.  We
    now exit on startup instead of leaving the user with a server
    unable to handle any connections.
    
    This fixes antirez#356 as well.
    b5958539
redis.c 119 KB