Add isatty check when change STDERR_FILENO to a file

This commit is contained in:
JohnnySun
2015-03-05 21:32:05 +08:00
parent b875797839
commit 2de1ef639b
5 changed files with 53 additions and 22 deletions
+2
View File
@@ -61,6 +61,8 @@ void ERROR(const char *s)
}
#endif
int use_tty = 1;
char *ss_itoa(int i)
{
/* Room for INT_DIGITS digits, - and '\0' */