summaryrefslogtreecommitdiffstats
path: root/b.rb
diff options
context:
space:
mode:
authorguy Decoux <ts@moulon.inra.fr>2009-02-28 20:09:29 +0100
committerguy Decoux <ts@moulon.inra.fr>2009-02-28 20:09:29 +0100
commitfa598d05504f6dd43e29e0f93a3f25d254ebd7c0 (patch)
tree7ecbeaf86a0a418342596d95a45f91f5fc2b01c8 /b.rb
parenta181d44ee4b78d7e016cf5b9e8fd5591723615bd (diff)
downloadmmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.zip
mmap-ruby-fa598d05504f6dd43e29e0f93a3f25d254ebd7c0.tar.gz
mmap-0.1.9
Diffstat (limited to 'b.rb')
-rwxr-xr-xb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/b.rb b/b.rb
index 2acbcf2..617cd8b 100755
--- a/b.rb
+++ b/b.rb
@@ -7,7 +7,7 @@ f.write("\0" * PAGESIZE)
f.write("b.rb")
f.write("\0" * PAGESIZE)
f.close
-m = Mmap.new("aa", "rw", "offset" => 0)
+m = Mmap.new("aa", "w", "offset" => 0)
p m.size == "b.rb".size + 2 * PAGESIZE
p m.scan(/[a-z.]+/) == ["b.rb"]
p m.index("b.rb") == PAGESIZE