mirror of https://github.com/mpv-player/mpv
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:
parent
e85f73f7fb
commit
04459fd6a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue