diff options
-rw-r--r-- | src/library.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index c6aa3eaf..61ef90fd 100644 --- a/src/library.js +++ b/src/library.js @@ -3178,9 +3178,9 @@ LibraryManager.library = { mmap__deps: ['$FS'], mmap: function(start, num, prot, flags, stream, offset) { // FIXME: Leaky and non-share - if (stream == -1) { - return allocate(num, 'i8', ALLOC_NORMAL); - } + //if (stream == -1) { // XXX We should handle -1 here, but this code leads to an infinite loop + // return allocate(num, 'i8', ALLOC_NORMAL); + //} var info = FS.streams[stream]; if (!info) return -1; return allocate(info.object.contents.slice(offset, offset+num), |