Add -N flag to never start server even if command would normally do so,

GitHub issue 2523.
This commit is contained in:
nicm
2021-01-17 16:17:41 +00:00
parent a75aca4d6a
commit 71c590a37f
4 changed files with 13 additions and 3 deletions

View File

@ -127,6 +127,8 @@ retry:
log_debug("connect failed: %s", strerror(errno));
if (errno != ECONNREFUSED && errno != ENOENT)
goto failed;
if (flags & CLIENT_NOSTARTSERVER)
goto failed;
if (~flags & CLIENT_STARTSERVER)
goto failed;
close(fd);