antirez/hiredis — Issue #64: BRPOPLPUSH Segmentation fault on server disconnect
Author: RonaldH
Created: 2011-11-03 20:39:25+00:00
State: open

When a server closes when the BRPOPLPUSH command is executed, and the server is closed, it will exit with an Segmentation Fault, I think this should be handled more discretely.

reply = (redisReply*)redisCommand(m_external->m_redis_context, "BRPOPLPUSH queuenotexistinga queuealsonotexistingb 0");
printf("Will never come here");

After you've come at this point, just close the server.