[tracker/tracker-0.16] libtracker-common: Use procfs psinfo instead of cmdline on Solaris
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.16] libtracker-common: Use procfs psinfo instead of cmdline on Solaris
- Date: Fri, 1 Nov 2013 15:28:20 +0000 (UTC)
commit f3824c6333df4b384b1297336e585c0e99adbe50
Author: Ralph Boehme <sloowfranklin gmail com>
Date: Fri Aug 16 15:46:45 2013 +0200
libtracker-common: Use procfs psinfo instead of cmdline on Solaris
Earlier commit 5b62dbd808928c1886d3ffa54ca01b289d50304e was missing
the correct /proc filename for Solaris.
src/libtracker-common/tracker-dbus.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-dbus.c b/src/libtracker-common/tracker-dbus.c
index beb1814..53da8e7 100644
--- a/src/libtracker-common/tracker-dbus.c
+++ b/src/libtracker-common/tracker-dbus.c
@@ -165,7 +165,11 @@ client_data_new (gchar *sender)
filename = g_build_filename (G_DIR_SEPARATOR_S,
"proc",
pid_str,
+#ifdef __sun /* Solaris */
+ "psinfo",
+#else
"cmdline",
+#endif
NULL);
g_free (pid_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]