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 @@ spoa_worker(void *data)
|
|||
|
||||
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