Retry properly when failed to connect.

This commit is contained in:
Nicholas Marriott
2009-01-15 00:21:24 +00:00
parent a1cb652643
commit 668dac5b12
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: client.c,v 1.37 2009-01-11 00:48:42 nicm Exp $ */
/* $Id: client.c,v 1.38 2009-01-15 00:21:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -82,7 +82,7 @@ retry:
if (server_start(path) != 0)
goto no_start;
}
goto fail;
goto retry;
}
if ((mode = fcntl(cctx->srv_fd, F_GETFL)) == -1)