NetworkManager r3990 - trunk/src/ppp-manager
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3990 - trunk/src/ppp-manager
- Date: Thu, 21 Aug 2008 12:55:37 +0000 (UTC)
Author: dcbw
Date: Thu Aug 21 12:55:36 2008
New Revision: 3990
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3990&view=rev
Log:
More verbose tracking of pppd
Modified:
trunk/src/ppp-manager/nm-ppp-manager.c
Modified: trunk/src/ppp-manager/nm-ppp-manager.c
==============================================================================
--- trunk/src/ppp-manager/nm-ppp-manager.c (original)
+++ trunk/src/ppp-manager/nm-ppp-manager.c Thu Aug 21 12:55:36 2008
@@ -585,7 +585,7 @@
}
static void
-ppp_exit_code (guint pppd_exit_status)
+ppp_exit_code (guint pppd_exit_status, GPid pid)
{
const char *msg;
@@ -653,7 +653,7 @@
msg = "Unknown error";
}
- g_warning ("pppd exited with error: %s", msg);
+ nm_warning ("ppp pid %d exited with error: %s", pid, msg);
}
static void
@@ -666,15 +666,16 @@
if (WIFEXITED (status)) {
err = WEXITSTATUS (status);
if (err != 0)
- ppp_exit_code (err);
+ ppp_exit_code (err, priv->pid);
} else if (WIFSTOPPED (status))
- g_warning ("ppp stopped unexpectedly with signal %d", WSTOPSIG (status));
+ nm_warning ("ppp pid %d stopped unexpectedly with signal %d", priv->pid, WSTOPSIG (status));
else if (WIFSIGNALED (status))
- g_warning ("ppp died with signal %d", WTERMSIG (status));
+ nm_warning ("ppp pid %d died with signal %d", priv->pid, WTERMSIG (status));
else
- g_warning ("ppp died from an unknown cause");
+ nm_warning ("ppp pid %d died from an unknown cause", priv->pid);
/* Reap child if needed. */
+ nm_debug ("ppp pid %d cleaned up", priv->pid);
waitpid (pid, NULL, WNOHANG);
priv->pid = 0;
@@ -949,6 +950,7 @@
/* ensure the child is reaped */
waitpid (pid, NULL, WNOHANG);
+ nm_debug ("ppp pid %d cleaned up", pid);
return FALSE;
}
@@ -991,6 +993,7 @@
kill (priv->pid, SIGKILL);
/* ensure the child is reaped */
waitpid (priv->pid, NULL, WNOHANG);
+ nm_debug ("ppp pid %d cleaned up", priv->pid);
}
priv->pid = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]