Added support for ignoring '-g' per GNU ls, thanks to David Vrabel
[oweals/busybox.git] / tty.c
diff --git a/tty.c b/tty.c
index 3a318ebbab5f5c1a40ac04e748a1a9b2b9ca86fa..f3c7fb74f5ceefb3297a839c6b170ebfd1a6da3f 100644 (file)
--- a/tty.c
+++ b/tty.c
@@ -46,5 +46,5 @@ extern int tty_main(int argc, char **argv)
                else
                        puts("not a tty");
        }
-       exit(isatty(0) ? TRUE : FALSE);
+       return(isatty(0) ? TRUE : FALSE);
 }