summaryrefslogtreecommitdiffstats
path: root/loader/ldt_keeper.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 12:55:09 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 12:55:09 +0000
commit04459fd6a3cf4f18ce4878f8e64d800319c9b7c2 (patch)
tree863b240404a0b65c2b59913e59a6795a2f516e58 /loader/ldt_keeper.c
parente85f73f7fb79025eafd2149c9bcd50f7915a220f (diff)
downloadmpv-04459fd6a3cf4f18ce4878f8e64d800319c9b7c2.tar.bz2
mpv-04459fd6a3cf4f18ce4878f8e64d800319c9b7c2.tar.xz
open /dev/zero left over from mmap_anon patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21260 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/ldt_keeper.c')
-rw-r--r--loader/ldt_keeper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/loader/ldt_keeper.c b/loader/ldt_keeper.c
index bf61f617cf..504d449a33 100644
--- a/loader/ldt_keeper.c
+++ b/loader/ldt_keeper.c
@@ -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);