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
df10b7d5
Commit
df10b7d5
authored
Jul 16, 2006
by
Paul Millar
Committed by
Alexandre Julliard
Jul 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Add a configure check for setrlimit.
parent
5557c71f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
loader.c
libs/wine/loader.c
+6
-0
No files found.
configure
View file @
df10b7d5
...
...
@@ -19379,6 +19379,7 @@ fi
for
ac_func
in
\
_lwp_create
\
_lwp_self
\
...
...
@@ -19428,6 +19429,7 @@ for ac_func in \
sched_yield
\
select
\
sendmsg
\
setrlimit
\
settimeofday
\
sigaltstack
\
sigprocmask
\
...
...
configure.ac
View file @
df10b7d5
...
...
@@ -1309,6 +1309,7 @@ AC_CHECK_FUNCS(\
sched_yield \
select \
sendmsg \
setrlimit \
settimeofday \
sigaltstack \
sigprocmask \
...
...
include/config.h.in
View file @
df10b7d5
...
...
@@ -587,6 +587,9 @@
/* Define to 1 if you have the `sendmsg' function. */
#undef HAVE_SENDMSG
/* Define to 1 if you have the `setrlimit' function. */
#undef HAVE_SETRLIMIT
/* Define to 1 if you have the `settimeofday' function. */
#undef HAVE_SETTIMEOFDAY
...
...
libs/wine/loader.c
View file @
df10b7d5
...
...
@@ -608,6 +608,7 @@ int wine_dll_get_owner( const char *name, char *buffer, int size, int *exists )
*/
static
void
set_max_limit
(
int
limit
)
{
#ifdef HAVE_SETRLIMIT
struct
rlimit
rlimit
;
if
(
!
getrlimit
(
limit
,
&
rlimit
))
...
...
@@ -615,6 +616,7 @@ static void set_max_limit( int limit )
rlimit
.
rlim_cur
=
rlimit
.
rlim_max
;
setrlimit
(
limit
,
&
rlimit
);
}
#endif
}
...
...
@@ -631,8 +633,12 @@ void wine_init( int argc, char *argv[], char *error, int error_size )
void
(
*
init_func
)(
void
);
/* force a few limits that are set too low on some platforms */
#ifdef RLIMIT_NOFILE
set_max_limit
(
RLIMIT_NOFILE
);
#endif
#ifdef RLIMIT_AS
set_max_limit
(
RLIMIT_AS
);
#endif
wine_init_argv0_path
(
argv
[
0
]
);
build_dll_path
();
...
...
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