commit | bb5816aa1626eb2f6263bd21479600b114c8a1bd | [log] [tgz] |
---|---|---|
author | Johan Redestig <johan.redestig@sonymobile.com> | Tue Jan 10 17:48:01 2012 +0900 |
committer | Johan Redestig <johan.redestig@sonymobile.com> | Wed Sep 05 09:42:37 2012 +0200 |
tree | 0011439701c856c58d31dcb028dc7a3364a61a77 | |
parent | f26e2ed8981895aab395cf14ef25fb54a208614b [diff] |
Make FileDescriptor.sync() work on ttys fsync on Linux fails on tty file descriptors. This change adds the capability to make sure all data was written to the terminal device descriptor to java.io.FileDescriptor.sync() implementation. Also fixed the return value from Posix_isatty. isatty returns 1 if an fd is a tty and 0 otherwise. Change-Id: I6cc65db83f523b4c31b67b48d7534e18af0989e8