Permalink
Browse files

If redis-server cannot be started, make sure we reap the zombie

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
1 parent 68df948 commit 76b19fb9b7f5f985636f72b6abb9677888c22700 @melo melo committed Jan 15, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 t/tlib/Test/SpawnRedisServer.pm
@@ -45,6 +45,7 @@ sub redis {
my ($ver, $c);
eval { ($ver, $c) = spawn_server($redis_server_path, $fn, $addr) };
if (my $e = $@) {
+ reap();
Test::More::plan skip_all => "Could not start redis-server: $@";
return;
}

0 comments on commit 76b19fb

Please sign in to comment.