1
0
Fork 0

added comment

This commit is contained in:
Jan Steemann 2014-10-21 10:45:27 +02:00
parent 3d70c55d85
commit 12ac3b8bdd
1 changed files with 3 additions and 0 deletions

View File

@ -330,6 +330,9 @@ void TRI_InitV8Shell (v8::Handle<v8::Context> context) {
TRI_AddGlobalFunctionVocbase(context, "SYS_PROCESS_JSON_FILE", JS_ProcessJsonFile);
bool isTty = (isatty(STDOUT_FILENO) != 0);
// on Linux, isatty() == 0 may also indicate an error. we can ignore this safely
// because if isatty returns an error we should not assume we're printing on a
// terminal
// .............................................................................
// create the global variables