antirez/redis — pull request #154 by florean (2011-10-21 02:09:12+00:00)
Title: 2.4

I apologize, I screwed up in my commit by not setting errno to zero before checking it after the strtol call. The other uses of it in config.c check to see if there was an err before checking errno, so it is safe to assume errno is set correctly. In my case, it is not. On my test system, it worked because there weren't any errors before I checked. But on the two very different production Linux servers I use (Ubuntu 10.10 and CentOS 5.6), something is generating a "File/Directory not found" (errno == 2) before it gets to my code and thus it fails every time. Here is the very simple fix.