MINOR: spoa-server: With debug mode, start only one process

Because debug with processes is simpler if only one process is started.
This commit is contained in:
Thierry FOURNIER 2018-02-23 19:11:47 +01:00 committed by Willy Tarreau
parent 7de6fc6ae1
commit 786e9e684b

View File

@ -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;