open /dev/zero left over from mmap_anon patch

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21260 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-11-26 12:55:09 +00:00
parent e85f73f7fb
commit 04459fd6a3
1 changed files with 0 additions and 5 deletions

View File

@ -195,11 +195,6 @@ ldt_fs_t* Setup_LDT_Keeper(void)
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);