From 2332b01980f652d4b4008ecfc642b2e054b84a00 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 19 May 2010 16:46:14 +0200 Subject: putenv("TERM=dumb") was causing a SEGV for Nikola, removing it Signed-off-by: Denys Vlasenko --- lib/Plugins/CCpp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Plugins/CCpp.cpp') diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index cf25c73f..14d321b0 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -170,7 +170,9 @@ static void GetBacktrace(const char *pDebugDumpDir, // Workaround for // http://sourceware.org/bugzilla/show_bug.cgi?id=9622 unsetenv("TERM"); - putenv((char*)"TERM=dumb"); + // This is not necessary, and was observed to cause + // environmant corruption (because we run in a thead?): + //putenv((char*)"TERM=dumb"); char *args[21]; args[0] = (char*)"gdb"; -- cgit