mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-13 07:43:32 -05:00
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:
parent
7de6fc6ae1
commit
786e9e684b
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue