starter: Don't monitor child if debugger is attached
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Martin Willi
parent
eafe8795ca
commit
f51c923f69
@@ -201,6 +201,11 @@ int starter_start_charon (starter_config_t *cfg, bool no_fork, bool attach_gdb)
|
|||||||
default:
|
default:
|
||||||
/* father */
|
/* father */
|
||||||
_charon_pid = pid;
|
_charon_pid = pid;
|
||||||
|
if (attach_gdb)
|
||||||
|
{
|
||||||
|
/* don't monitor pid file if gdb is attached */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
for (i = 0; i < 500 && _charon_pid; i++)
|
for (i = 0; i < 500 && _charon_pid; i++)
|
||||||
{
|
{
|
||||||
/* wait for charon for a maximum of 500 x 20 ms = 10 s */
|
/* wait for charon for a maximum of 500 x 20 ms = 10 s */
|
||||||
|
|||||||
Reference in New Issue
Block a user