From: Robert Pluim Date: Sat, 5 Mar 2022 19:00:09 +0000 (+0100) Subject: Use pselect instead of select in nsterm.m X-Git-Tag: emacs-29.0.90~2001 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=98d2dc6522114e4044077801f11a3ed8de9c1147;p=emacs.git Use pselect instead of select in nsterm.m * 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). --- diff --git a/src/nsterm.m b/src/nsterm.m index 45561b88b50..4adb13706d9 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -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; }