commit | 786e9e684bbd68ba77021ade94287d5be3ceb097 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <thierry.fournier@ozon.io> | Fri Feb 23 19:11:47 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon May 13 17:43:47 2019 +0200 |
tree | 4b49122987dc3d8445e6a0ae09d077ade62cd5bc | |
parent | 7de6fc6ae17ec03c97c90a87850fa66bec0b437e [diff] |
MINOR: spoa-server: With debug mode, start only one process Because debug with processes is simpler if only one process is started.
diff --git a/contrib/spoa_server/spoa.c b/contrib/spoa_server/spoa.c index c762541..3766c47 100644 --- a/contrib/spoa_server/spoa.c +++ b/contrib/spoa_server/spoa.c
@@ -982,6 +982,10 @@ 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;