[network-manager-openswan/dcbw/cleanups: 16/17] core: baby the ipsec child process



commit 1ccad572e215a48399e819dbce27899e6f0c9a4f
Author: Dan Williams <dcbw redhat com>
Date:   Thu Aug 7 13:15:36 2014 -0500

    core: baby the ipsec child process
    
    Yeah, it's evil, but for now this allows the child ipsec process enough
    time to read the configuration we've written.

 src/nm-openswan-service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-openswan-service.c b/src/nm-openswan-service.c
index 7f18e88..ecba977 100644
--- a/src/nm-openswan-service.c
+++ b/src/nm-openswan-service.c
@@ -536,8 +536,10 @@ real_connect (NMVPNPlugin   *plugin,
                nm_connection_dump (connection);
 
        /* Start the IPSec service */
+       sleep (1);
        if (!nm_openswan_config_write (fd, uuid, s_vpn, error))
                goto error;
+       sleep (3);
        close (fd);
 
        /* Start the actual IPSec connection */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]