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
This commit is contained in:
Dan Williams 2005-05-27 14:19:30 +00:00
parent 6945122fe7
commit 82bf4f2b72
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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))