diff options
author | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-04-14 10:34:24 +0000 |
commit | a44bb9345f0482b3dace19a27ee40320ddadc75f (patch) | |
tree | 34d75bd95b2868900213e13c31ddd892d2fd4904 /src/starter/invokepluto.c | |
parent | 6e5c8d9413234b18a0631cddadd973a9f509708b (diff) | |
download | strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.bz2 strongswan-a44bb9345f0482b3dace19a27ee40320ddadc75f.tar.xz |
merged multi-auth branch back into trunk
Diffstat (limited to 'src/starter/invokepluto.c')
-rw-r--r-- | src/starter/invokepluto.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/starter/invokepluto.c b/src/starter/invokepluto.c index 6fdf46ffd..5e840bac2 100644 --- a/src/starter/invokepluto.c +++ b/src/starter/invokepluto.c @@ -121,7 +121,7 @@ starter_stop_pluto (void) } int -starter_start_pluto (starter_config_t *cfg, bool no_fork) +starter_start_pluto (starter_config_t *cfg, bool no_fork, bool attach_gdb) { struct stat stb; int i; @@ -137,7 +137,15 @@ starter_start_pluto (starter_config_t *cfg, bool no_fork) }; printf ("starter_start_pluto entered\n"); - + + if (attach_gdb) + { + argc = 0; + arg[argc++] = "/usr/bin/gdb"; + arg[argc++] = "--args"; + arg[argc++] = PLUTO_CMD; + arg[argc++] = "--nofork"; + } if (cfg->setup.plutostderrlog || no_fork) { arg[argc++] = "--stderrlog"; |