~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: dcoles
  • Date: 2008-08-04 08:01:04 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:976
Trampoline: Fixing small typo since we're really trying to limit the physical 
data in memory and have very little interest in core files (short of not 
wanting them).  Curiously it doesn't seem to stop me allocating ~512MB of 
data... Is this something to do with malloc being able to do MAP_ANONYMOUS 
mmap?

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
    if (!unlimited)
319
319
    {
320
320
        struct rlimit l;
321
 
        /* Process size in virtual memory */
 
321
        /* Process data segment in memory */
322
322
        l.rlim_cur = 64 * 1024 * 1024; /* 64Mb */
323
323
        l.rlim_max = 72 * 1024 * 1024; /* 64Mb */
324
 
        if (setrlimit(RLIMIT_CORE, &l))
 
324
        if (setrlimit(RLIMIT_DATA, &l))
325
325
        {
326
 
            perror("could not setrlimit/RLIMIT_CORE");
 
326
            perror("could not setrlimit/RLIMIT_DATA");
327
327
            exit(1);
328
328
        }
329
329