]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Add missing timeout value in ns_select"
authorAlan Third <alan@idiocy.org>
Mon, 13 Mar 2017 15:02:37 +0000 (15:02 +0000)
committerAlan Third <alan@idiocy.org>
Tue, 14 Mar 2017 14:45:41 +0000 (14:45 +0000)
This reverts commit a65236214d9202fb69a6ba5169d4ac1a4bcb0b0d.

src/nsterm.m

index 05435697cf375bfd73df888f10b7d50887c6b3cc..4748cd3e1372b8646e4bd3797d73aebdc0e2b73d 100644 (file)
@@ -4168,16 +4168,10 @@ ns_select (int nfds, fd_set *readfds, fd_set *writefds,
       /* Inform fd_handler that select should be called */
       c = 'g';
       emacs_write_sig (selfds[1], &c, 1);
-
-      /* We rely on fd_handler timing out to cause
-         nextEventMatchingMask below to return, so set it's timeout to
-         an unreasonably long time. */
-      timeout_date = [NSDate distantFuture];
     }
   else if (nr == 0 && timeout)
     {
-      /* No file descriptor, just a timeout, no need to wake
-         fd_handler. Set nextEventMatchingMask timeout. */
+      /* No file descriptor, just a timeout, no need to wake fd_handler  */
       double time = timespectod (*timeout);
       timeout_date = [NSDate dateWithTimeIntervalSinceNow: time];
     }