Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created July 12, 2012 11:48
Show Gist options
  • Select an option

  • Save saitoha/3097660 to your computer and use it in GitHub Desktop.

Select an option

Save saitoha/3097660 to your computer and use it in GitHub Desktop.
patch for mlterm-3.1.3pre, for MacOSX Lion
diff -r 7a4846d08dd0 kiklib/src/kik_pty_streams.c
--- a/kiklib/src/kik_pty_streams.c Thu Jul 12 05:56:56 2012 +0900
+++ b/kiklib/src/kik_pty_streams.c Thu Jul 12 20:47:08 2012 +0900
@@ -107,9 +107,7 @@
if( fcntl( *master, F_SETFL, O_NDELAY) == -1)
{
- close(*master) ;
-
- return -1 ;
+ kik_msg_printf( "Unable to set O_NODELAY flag for master device.\n") ;
}
if( ( *slave = open( ttydev, O_RDWR | O_NOCTTY, 0)) < 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment