Permalink
Browse files

Fail to fix OS X security session race condition.

  • Loading branch information...
1 parent 54f57ff commit 67c3c1259adf10ccc0677a2313f9238056bf2d87 @saurik committed Apr 18, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/frontend/mosh-server.cc
@@ -321,6 +321,12 @@ int run_server( const char *desired_ip, const char *desired_port,
if ( the_pid < 0 ) {
perror( "fork" );
} else if ( the_pid > 0 ) {
+
+#ifdef __APPLE__
+ /* XXX: horrible race condition */
+ sleep(2);
+#endif
+
_exit( 0 );
}

0 comments on commit 67c3c12

Please sign in to comment.