Signed-off-by: Thomas Egerer <[email protected]>
---

Which reminds me of this tiny patch I have in stash. It would
certainly be helpful if the starter did not watch charon
with gdb attached.

Cheers, Thomas

 src/starter/invokecharon.c | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/src/starter/invokecharon.c b/src/starter/invokecharon.c
index d981f6c..d40ab8c 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 */

_______________________________________________
Dev mailing list
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev

Reply via email to