Mercurial > emacs
comparison src/emacs.c @ 63883:53559de8d502
2005-07-01 Masatake YAMATO <jet@gyve.org>
* emacs.c (main): Passing ADD_NO_RANDOMIZE to
`personality'.
author | Masatake YAMATO <jet@gyve.org> |
---|---|
date | Thu, 30 Jun 2005 16:30:53 +0000 |
parents | f2898fcf745b |
children | a8fa7c632ee4 efa9e4606e7e |
comparison
equal
deleted
inserted
replaced
63882:35bc84251d54 | 63883:53559de8d502 |
---|---|
916 { | 916 { |
917 if (! getenv ("EMACS_HEAP_EXEC")) | 917 if (! getenv ("EMACS_HEAP_EXEC")) |
918 { | 918 { |
919 /* Set this so we only do this once. */ | 919 /* Set this so we only do this once. */ |
920 putenv("EMACS_HEAP_EXEC=true"); | 920 putenv("EMACS_HEAP_EXEC=true"); |
921 personality (PER_LINUX32); | 921 |
922 /* A flag to turn off address randomization which is introduced | |
923 in linux kernel shipped with fedora core 4 */ | |
924 #define ADD_NO_RANDOMIZE 0x0040000 | |
925 personality (PER_LINUX32 | ADD_NO_RANDOMIZE); | |
926 #undef ADD_NO_RANDOMIZE | |
927 | |
922 execvp (argv[0], argv); | 928 execvp (argv[0], argv); |
923 | 929 |
924 /* If the exec fails, try to dump anyway. */ | 930 /* If the exec fails, try to dump anyway. */ |
925 perror ("execvp"); | 931 perror ("execvp"); |
926 } | 932 } |