aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Egerer <thomas.egerer@secunet.com>2014-08-07 18:05:46 +0200
committerMartin Willi <martin@revosec.ch>2014-08-08 09:59:57 +0200
commitf51c923f69f921b8888aff7cd3ab29fc6aea6ab8 (patch)
tree386f76fbfb3864aeb90e8502f3c94c6aaaa7ef17 /src
parenteafe8795ca3f86f72c591c2ebb9ffd07512596d3 (diff)
downloadstrongswan-f51c923f69f921b8888aff7cd3ab29fc6aea6ab8.tar.bz2
strongswan-f51c923f69f921b8888aff7cd3ab29fc6aea6ab8.tar.xz
starter: Don't monitor child if debugger is attached
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Diffstat (limited to 'src')
-rw-r--r--src/starter/invokecharon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c
index d981f6c17..d40ab8c28 100644
--- a/src/starter/invokecharon.c
+++ b/src/starter/invokecharon.c
@@ -201,6 +201,11 @@ int starter_start_charon (starter_config_t *cfg, bool no_fork, bool attach_gdb)
default:
/* father */
_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++)
{
/* wait for charon for a maximum of 500 x 20 ms = 10 s */