Mercurial > mplayer.hg
changeset 21244:77038ef975ba
open /dev/zero left over from mmap_anon patch
author | reimar |
---|---|
date | Sun, 26 Nov 2006 12:55:09 +0000 |
parents | 3ee64ff583a9 |
children | 89cf78cf2620 |
files | loader/ldt_keeper.c |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/ldt_keeper.c Sun Nov 26 12:12:46 2006 +0000 +++ b/loader/ldt_keeper.c Sun Nov 26 12:55:09 2006 +0000 @@ -195,11 +195,6 @@ if (!ldt_fs) return NULL; - ldt_fs->fd = open("/dev/zero", O_RDWR); - if(ldt_fs->fd<0){ - perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: "); - return NULL; - } fs_seg= ldt_fs->fs_seg = mmap_anon(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_PRIVATE, &ldt_fs->fd, 0);