aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-11 15:15:24 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-11 15:15:24 -0500
commit99e915dbfea9b2b985a10368721d9c79b358abbe (patch)
treeb911d7fda03adffc725a937a59bfa2ed2a18776a /src
parentb223b7c22d4bf0bd4d58987368523a2a07c6395e (diff)
parentf5f6d13e4cc0d8e823888694bb2c3415d80690ab (diff)
downloadtor-99e915dbfea9b2b985a10368721d9c79b358abbe.tar.gz
tor-99e915dbfea9b2b985a10368721d9c79b358abbe.zip
Merge remote-tracking branch 'public/bug14759'
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 450b04a6f7..57847e1376 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1676,6 +1676,9 @@ register_cfg(sandbox_cfg_t* cfg)
static int
initialise_libseccomp_sandbox(sandbox_cfg_t* cfg)
{
+ /* Prevent glibc from trying to open /dev/tty on fatal error */
+ setenv("LIBC_FATAL_STDERR_", "1", 1);
+
if (install_sigsys_debugging())
return -1;