[tracker] Disabled setrlimit for now, it is causing problems with gstreamer
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Disabled setrlimit for now, it is causing problems with gstreamer
- Date: Tue, 28 Jul 2009 11:17:13 +0000 (UTC)
commit 337e0c9f914506d4d9621d6384699e66ee9d5cbf
Author: Martyn Russell <martyn imendio com>
Date: Tue Jul 28 12:02:46 2009 +0100
Disabled setrlimit for now, it is causing problems with gstreamer
src/libtracker-common/tracker-os-dependant-unix.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-os-dependant-unix.c b/src/libtracker-common/tracker-os-dependant-unix.c
index 304af4a..8e421db 100644
--- a/src/libtracker-common/tracker-os-dependant-unix.c
+++ b/src/libtracker-common/tracker-os-dependant-unix.c
@@ -45,7 +45,7 @@
#define RLIMIT_AS RLIMIT_DATA
#endif
-#undef DISABLE_MEM_LIMITS
+#define DISABLE_MEM_LIMITS
gboolean
tracker_spawn (gchar **argv,
@@ -220,6 +220,8 @@ tracker_create_permission_string (struct stat finfo)
return str;
}
+#ifndef DISABLE_MEM_LIMITS
+
static guint
get_memory_total (void)
{
@@ -266,6 +268,8 @@ get_memory_total (void)
return total;
}
+#endif /* DISABLE_MEM_LIMITS */
+
gboolean
tracker_memory_setrlimits (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]