summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-13 03:39:17 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-13 03:39:17 -0800
commit05e577616b74bea99a0e43e07f28823ddda1aaf9 (patch)
tree09a9b30231e9dfe8bd27af29f1600be27bcd99a0
parent9adbee0ab71bf408db5c3befb43b2bab0d86ebb2 (diff)
This fixes a misuse of the Ruby API leading to memory leaks in
cases where message queues are continually opened and closed
throughout the lifetime of the application.

Fortunately applications have little reason to repeatedly open
and close message queue descriptors: they are
multi-thread/multi-process-safe in every way imaginable and also
capable of non-blocking operation.
-rwxr-xr-xGIT-VERSION-GEN2
-rw-r--r--lib/posix_mq.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index e1fc604..d433933 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v0.3.0.GIT
+DEF_VER=v0.3.1.GIT
 
 LF='
 '
diff --git a/lib/posix_mq.rb b/lib/posix_mq.rb
index 356a9f5..af31c16 100644
--- a/lib/posix_mq.rb
+++ b/lib/posix_mq.rb
@@ -1,8 +1,8 @@
 # -*- encoding: binary -*-
 class POSIX_MQ
 
-  # version of POSIX_MQ, currently 0.3.0
-  VERSION = '0.3.0'
+  # version of POSIX_MQ, currently 0.3.1
+  VERSION = '0.3.1'
 
   # An analogous Struct to "struct mq_attr" in C.
   # This may be used in arguments for POSIX_MQ.new and