emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 98d2dc6522: Use pselect instead of select in nsterm.m


From: Lars Ingebrigtsen
Subject: master 98d2dc6522: Use pselect instead of select in nsterm.m
Date: Sat, 5 Mar 2022 14:01:14 -0500 (EST)

branch: master
commit 98d2dc6522114e4044077801f11a3ed8de9c1147
Author: Robert Pluim <rpluim@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 src/nsterm.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 45561b88b5..4adb13706d 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;
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]