mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-28 23:52:06 +00: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
@ -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 New Issue
Block a user