aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-22 14:42:37 -0700
committerMike Frysinger <vapier@gentoo.org>2012-06-23 18:38:46 -0400
commit84b955a043a8962aaef8feab29ac66d21874af81 (patch)
tree6ed731ebdd17058fec2ae6fee98bc7ecd1887c0e
parentsignificantly overhaul output helpers (diff)
downloadsandbox-84b955a043a8962aaef8feab29ac66d21874af81.tar.gz
sandbox-84b955a043a8962aaef8feab29ac66d21874af81.tar.bz2
sandbox-84b955a043a8962aaef8feab29ac66d21874af81.zip
libsandbox: kill off SB_MEM_DEBUG
The mcheck/mtrace logic assumes we're using glibc's memory allocator, but that hasn't been true for sometime (we use our own based on mmap and such), so this code no longer serves a purpose. Punt it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libsandbox/libsandbox.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index eac134e..60d4614 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -10,18 +10,11 @@
* as some of the InstallWatch code was used.
*/
-/* Uncomment below to enable memory debugging. */
-/* #define SB_MEM_DEBUG 1 */
-
#define open xxx_open
#define open64 xxx_open64
#include "headers.h"
-#ifdef SB_MEM_DEBUG
-# include <mcheck.h>
-#endif
-
#undef open
#undef open64
@@ -74,16 +67,6 @@ static void init_env_entries(char ***, int *, const char *, const char *, int);
const char sbio_fallback_path[] = "/dev/tty";
-#ifdef SB_MEM_DEBUG
-__attribute__((constructor))
-void libsb_init(void)
-{
- save_errno();
- mtrace();
- restore_errno();
-}
-#endif
-
/* resolve_dirfd_path - get the path relative to a dirfd
*
* return value: