Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3674c773
Commit
3674c773
authored
Mar 21, 2008
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Cope with Leopard brokenness w.r.t. setrlimit(RLIMIT_NOFILE).
parent
2904f543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
loader.c
libs/wine/loader.c
+12
-1
No files found.
libs/wine/loader.c
View file @
3674c773
...
...
@@ -596,7 +596,18 @@ static void set_max_limit( int limit )
if
(
!
getrlimit
(
limit
,
&
rlimit
))
{
rlimit
.
rlim_cur
=
rlimit
.
rlim_max
;
setrlimit
(
limit
,
&
rlimit
);
if
(
setrlimit
(
limit
,
&
rlimit
)
!=
0
)
{
#if defined(__APPLE__) && defined(RLIMIT_NOFILE) && defined(OPEN_MAX)
/* On Leopard, setrlimit(RLIMIT_NOFILE, ...) fails on attempts to set
* rlim_cur above OPEN_MAX (even if rlim_max > OPEN_MAX). */
if
(
limit
==
RLIMIT_NOFILE
&&
rlimit
.
rlim_cur
>
OPEN_MAX
)
{
rlimit
.
rlim_cur
=
OPEN_MAX
;
setrlimit
(
limit
,
&
rlimit
);
}
#endif
}
}
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment