• antirez's avatar
    Check event loop creation return value. Fix #3951. · 238cebdd
    antirez authored
    Normally we never check for OOM conditions inside Redis since the
    allocator will always return a pointer or abort the program on OOM
    conditons. However we cannot have control on epool_create(), that may
    fail for kernel OOM (according to the manual page) even if all the
    parameters are correct, so the function aeCreateEventLoop() may indeed
    return NULL and this condition must be checked.
    238cebdd
server.c 147 KB