projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7de6fc6
)
MINOR: spoa-server: With debug mode, start only one process
author
Thierry FOURNIER
<thierry.fournier@ozon.io>
Fri, 23 Feb 2018 18:11:47 +0000
(19:11 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 13 May 2019 15:43:47 +0000
(17:43 +0200)
Because debug with processes is simpler if only one process is started.
contrib/spoa_server/spoa.c
patch
|
blob
|
history
diff --git
a/contrib/spoa_server/spoa.c
b/contrib/spoa_server/spoa.c
index
c762541
..
3766c47
100644
(file)
--- a/
contrib/spoa_server/spoa.c
+++ b/
contrib/spoa_server/spoa.c
@@
-982,6
+982,10
@@
out:
int process_create(pid_t *pid, void *(*ps)(void *), void *data)
{
+ if (debug) {
+ ps(data);
+ exit(EXIT_SUCCESS);
+ }
*pid = fork();
if (*pid == -1)
return -1;