aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-04-15 07:50:15 -0700
committerGlenn Morris2020-04-15 07:50:15 -0700
commit97e48510ad4fec9ca5f576a750018a231523f7a6 (patch)
tree06f50ebc5da12038bc4851b44946462a498ac755 /src
parentafa542c914379538f986f1428f176ffe42f62609 (diff)
parenta5f7c269075180e4531f0a784201a09b49731a27 (diff)
downloademacs-97e48510ad4fec9ca5f576a750018a231523f7a6.tar.gz
emacs-97e48510ad4fec9ca5f576a750018a231523f7a6.zip
Merge from origin/emacs-27
a5f7c26907 (origin/emacs-27) * admin/authors.el: Add an author alias. d87a4d1f4e Limit RLIMIT_NOFILE to FD_SETSIZE on macOS e5ca8e5e73 Fix Elisp manual entry on 'set-window-configuration' 485f24223f ; Update ChangeLog.3 8f200254fb ; Update etc/AUTHORS c7adc851ad * admin/authors.el: Add missing author aliases. 4acdd7fe58 Fix edge case errors in filename-matching regexps 5f36e21fe5 Clarify the doc string of 'yank' 13301d4266 New function erc-track-switch-buffer-other-window 38f7538d8f New function erc-switch-to-buffer-other-window # Conflicts: # etc/NEWS
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 3ce223307ba..2f181eafd03 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5837,6 +5837,21 @@ ns_term_shutdown (int sig)
5837#endif 5837#endif
5838 5838
5839#ifdef NS_IMPL_COCOA 5839#ifdef NS_IMPL_COCOA
5840 /* Some functions/methods in CoreFoundation/Foundation increase the
5841 maximum number of open files for the process in their first call.
5842 We make dummy calls to them and then reduce the resource limit
5843 here, since pselect cannot handle file descriptors that are
5844 greater than or equal to FD_SETSIZE. */
5845 CFSocketGetTypeID ();
5846 CFFileDescriptorGetTypeID ();
5847 [[NSFileHandle alloc] init];
5848 struct rlimit rlim;
5849 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
5850 && rlim.rlim_cur > FD_SETSIZE)
5851 {
5852 rlim.rlim_cur = FD_SETSIZE;
5853 setrlimit (RLIMIT_NOFILE, &rlim);
5854 }
5840 if ([NSApp activationPolicy] == NSApplicationActivationPolicyProhibited) { 5855 if ([NSApp activationPolicy] == NSApplicationActivationPolicyProhibited) {
5841 /* Set the app's activation policy to regular when we run outside 5856 /* Set the app's activation policy to regular when we run outside
5842 of a bundle. This is already done for us by Info.plist when we 5857 of a bundle. This is already done for us by Info.plist when we