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
1b8d9e03
Commit
1b8d9e03
authored
Sep 21, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Set the address space limit before starting the preloader.
parent
5874b854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
glibc.c
loader/glibc.c
+18
-0
No files found.
loader/glibc.c
View file @
1b8d9e03
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
#ifdef HAVE_SYS_MMAN_H
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
# include <sys/mman.h>
#endif
#endif
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <unistd.h>
#endif
#endif
...
@@ -97,6 +100,18 @@ static void check_vmsplit( void *stack )
...
@@ -97,6 +100,18 @@ static void check_vmsplit( void *stack )
}
}
}
}
static
void
set_max_limit
(
int
limit
)
{
struct
rlimit
rlimit
;
if
(
!
getrlimit
(
limit
,
&
rlimit
))
{
rlimit
.
rlim_cur
=
rlimit
.
rlim_max
;
setrlimit
(
limit
,
&
rlimit
);
}
}
/**********************************************************************
/**********************************************************************
* main
* main
*/
*/
...
@@ -108,6 +123,9 @@ int main( int argc, char *argv[] )
...
@@ -108,6 +123,9 @@ int main( int argc, char *argv[] )
wine_init_argv0_path
(
new_argv0
);
wine_init_argv0_path
(
new_argv0
);
/* set the address space limit before starting the preloader */
set_max_limit
(
RLIMIT_AS
);
if
(
loader
)
if
(
loader
)
{
{
/* update WINELOADER with the new name */
/* update WINELOADER with the new name */
...
...
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