projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45eff44
)
MINOR: warning on multiple -x
author
William Lallemand
<wlallemand@haproxy.com>
Mon, 19 Jun 2017 14:37:19 +0000
(16:37 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 20 Jun 2017 12:43:28 +0000
(14:43 +0200)
Multiple use of the -x option is useless, emit a warning.
src/haproxy.c
patch
|
blob
|
history
diff --git
a/src/haproxy.c
b/src/haproxy.c
index
2fd387f
..
1eabb55
100644
(file)
--- a/
src/haproxy.c
+++ b/
src/haproxy.c
@@
-1283,7
+1283,10
@@
static void init(int argc, char **argv)
Alert("Unix socket path expected with the -x flag\n\n");
usage(progname);
}
+ if (old_unixsocket)
+ Warning("-x option already set, overwriting the value\n");
old_unixsocket = argv[1];
+
argv++;
argc--;
}