tracker r3179 - in trunk: . src/libtracker-common



Author: mr
Date: Mon Apr  6 13:11:59 2009
New Revision: 3179
URL: http://svn.gnome.org/viewvc/tracker?rev=3179&view=rev

Log:
	* src/libtracker-common/tracker-os-dependant-unix.c:
	(tracker_memory_setrlimits): Disabled by default to stop us
	getting SIGSEGV just because we reach the memory limits (which are
	small), instead we shouldn't be crashing, we should be
	investigating said issues. This should fix several launchpad
	issues that were reported since 0.6.91.


Modified:
   trunk/ChangeLog
   trunk/src/libtracker-common/tracker-os-dependant-unix.c

Modified: trunk/src/libtracker-common/tracker-os-dependant-unix.c
==============================================================================
--- trunk/src/libtracker-common/tracker-os-dependant-unix.c	(original)
+++ trunk/src/libtracker-common/tracker-os-dependant-unix.c	Mon Apr  6 13:11:59 2009
@@ -33,6 +33,8 @@
 #define MAX_MEM       128
 #define MAX_MEM_AMD64 512
 
+#define DISABLE_MEM_LIMITS
+
 gboolean
 tracker_spawn (gchar **argv,
 	       gint    timeout,
@@ -209,6 +211,7 @@
 gboolean
 tracker_memory_setrlimits (void)
 {
+#ifndef DISABLE_MEM_LIMITS
 	struct rlimit rl;
 	gboolean      fail = FALSE;
 
@@ -241,4 +244,7 @@
 	}
 
 	return !fail;
+#else  /* DISABLE_MEM_LIMITS */
+	return TRUE;
+#endif /* DISABLE_MEM_LIMITS */
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]