[gnome-packagekit/polkit1: 29/30] Don't display an error if a PID cannot be found
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit/polkit1: 29/30] Don't display an error if a PID cannot be found
- Date: Mon, 22 Jun 2009 07:37:52 -0400 (EDT)
commit 4c1dc3af31502938536ea943c6fbae304fde6753
Author: Richard Hughes <richard hughsie com>
Date: Mon Jun 22 12:29:02 2009 +0100
Don't display an error if a PID cannot be found
src/gpk-dbus.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gpk-dbus.c b/src/gpk-dbus.c
index c2c762b..573b1c0 100644
--- a/src/gpk-dbus.c
+++ b/src/gpk-dbus.c
@@ -108,7 +108,7 @@ gpk_dbus_error_get_type (void)
static guint
gpk_dbus_get_pid (GpkDbus *dbus, const gchar *sender)
{
- guint pid;
+ guint pid = G_MAXUINT;
gboolean ret;
GError *error = NULL;
@@ -123,7 +123,7 @@ gpk_dbus_get_pid (GpkDbus *dbus, const gchar *sender)
G_TYPE_UINT, &pid,
G_TYPE_INVALID);
if (!ret) {
- egg_error ("failed to get pid: %s", error->message);
+ egg_warning ("failed to get pid: %s", error->message);
g_error_free (error);
goto out;
}
@@ -304,7 +304,8 @@ gpk_dbus_create_task (GpkDbus *dbus, guint32 xid, const gchar *interaction, DBus
/* get the program name and set */
sender = dbus_g_method_get_sender (context);
exec = gpk_dbus_get_exec_for_sender (dbus, sender);
- gpk_dbus_task_set_exec (task, exec);
+ if (exec != NULL)
+ gpk_dbus_task_set_exec (task, exec);
/* unref on delete */
//g_signal_connect...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]