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

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: wagrant
  • Date: 2008-07-17 00:56:23 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:899
trampoline: Limit data, not virtual memory, so we can run on amd64.

Show diffs side-by-side

added added

removed removed

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