mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-16 06:40:41 +00:00
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:
parent
6945122fe7
commit
82bf4f2b72
|
@ -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
|
||||
|
|
|
@ -324,6 +324,9 @@ static void vpnc_watch_cb (GPid pid, gint status, gpointer user_data)
|
|||
GPid daemon_pid;
|
||||
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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue