]> git.eshelyaron.com Git - emacs.git/commitdiff
Use pselect instead of select in nsterm.m
authorRobert Pluim <rpluim@gmail.com>
Sat, 5 Mar 2022 19:00:09 +0000 (20:00 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Mar 2022 19:00:09 +0000 (20:00 +0100)
* src/nsterm.m ([EmacsApp fdhandler:]): Use pselect instead of
the single remaining use of select (because we try to avoid using
select directly) (bug#54245).

src/nsterm.m

index 45561b88b502cdd0645e689d2e46bbc44beacbb6..4adb13706d97da20897baa94de1cad6b28c21711 100644 (file)
@@ -5838,7 +5838,7 @@ not_in_argv (NSString *arg)
           fd_set fds;
           FD_ZERO (&fds);
           FD_SET (selfds[0], &fds);
-          result = select (selfds[0]+1, &fds, NULL, NULL, NULL);
+          result = pselect (selfds[0]+1, &fds, NULL, NULL, NULL, NULL);
           if (result > 0 && read (selfds[0], &c, 1) == 1 && c == 'g')
            waiting = 0;
         }