Commit 82bf4f2b authored by Dan Williams's avatar Dan Williams
Browse files

2005-05-27 Dan Williams <dcbw@redhat.com>

	* vpn-daemons/vpnc/nm-vpnc-service.c
		- (vpnc_watch_cb): wait a bit before trying to read vpnc's pidfile.
			Should fix the bug where the VPN connection terminates the first time.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@650 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 6945122f
2005-05-27 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/nm-vpnc-service.c
- (vpnc_watch_cb): wait a bit before trying to read vpnc's pidfile.
Should fix the bug where the VPN connection terminates the first time.
2005-05-20 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
......
......@@ -322,7 +322,10 @@ static void vpnc_watch_cb (GPid pid, gint status, gpointer user_data)
case 0: /* Success, vpnc has daemonized */
{
GPid daemon_pid;
char *contents;
char * contents;
/* vpnc is a bit slow to write the PID file */
sleep(1);
/* Grab the vpnc daemon's PID from its pidfile */
if (g_file_get_contents (NM_VPNC_PID_FILE_PATH, &contents, NULL, NULL))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment