[tracker] libtracker-common: Use procfs psinfo instead of cmdline on Solaris



commit d5766883fda010f00e61b8adc5eaa9f0b29282b6
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]