starter: Go back to single threaded mode.

Mixing multiple threads and fork(2) wasn't a very good idea it seems.
At least in some environments this caused strange side-effects.
This commit is contained in:
Tobias Brunner
2012-06-08 14:12:07 +02:00
parent 05ca56558c
commit 4a10eda1a0
2 changed files with 7 additions and 22 deletions
+2 -2
View File
@@ -201,8 +201,8 @@ int starter_start_charon (starter_config_t *cfg, bool no_fork, bool attach_gdb)
exit(1);
default:
/* father */
_charon_pid = pid;
for (i = 0; i < 500 && _charon_pid; i++)
_charon_pid = pid;
for (i = 0; i < 500 && _charon_pid; i++)
{
/* wait for charon for a maximum of 500 x 20 ms = 10 s */
usleep(20000);