Add (again) default semaphore value; all tests passing on Linux.

This commit is contained in:
Patrick Mahoney 2012-02-01 21:43:53 -06:00
parent 842ff179ec
commit 60b1cd8e53
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module ProcessShared
# resort).
#
# @param [Integer] value the initial semaphore value
def initialize(value)
def initialize(value = 1)
@sem = SharedMemory.new(LibC.type_size(:sem_t))
sem_init(@sem, 1, value)
ObjectSpace.define_finalizer(self, self.class.make_finalizer(@sem))