• antirez's avatar
    Prevent corruption of server.executable after DEBUG RESTART. · 3b9be93f
    antirez authored
    Doing the following ended with a broken server.executable:
    
    1. Start Redis with src/redis-server
    2. Send CONFIG SET DIR /tmp/
    3. Send DEBUG RESTART
    
    At this point we called execve with an argv[0] that is no longer related
    to the new path. So after the restart the absolute path of the
    executable is recomputed in the wrong way. With this fix we pass the
    absolute path already computed as argv[0].
    3b9be93f
server.c 150 KB