set non-blocking io.

git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2472 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2012-08-04 22:36:41 +00:00
parent 91ac76dfb6
commit 7edca6dc13

View File

@ -74,7 +74,7 @@
int fd; int fd;
struct termios term; struct termios term;
struct winsize ws = [_emulator defaultSize]; struct winsize ws = [_emulator defaultSize];
//int flags; int flags;
memset(&term, 0, sizeof(term)); memset(&term, 0, sizeof(term));
@ -153,10 +153,11 @@
// child // child
} }
/*
// non-blocking io.
if (fcntl(fd, F_GETFL, &flags) < 0) flags = 0; if (fcntl(fd, F_GETFL, &flags) < 0) flags = 0;
fcntl(fd, F_SETFL, flags | O_NONBLOCK); fcntl(fd, F_SETFL, flags | O_NONBLOCK);
*/
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO]; [_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];