make POSIX_MQ#dup and POSIX_MQ#clone no-op
commit67a59023164bc039129b34a742f06ba376687684
authorEric Wong <normalperson@yhbt.net>
Wed, 17 Feb 2010 08:37:43 +0000 (17 00:37 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 20 Feb 2010 22:12:01 +0000 (20 14:12 -0800)
treee18be0dbb1f7229576a94abe712edc5e4523ff66
parent05e577616b74bea99a0e43e07f28823ddda1aaf9
make POSIX_MQ#dup and POSIX_MQ#clone no-op

It'll cause problems for the automatic mq_close() during GC
otherwise, as dup(2) on an mqd_t isn't portable.

Of course there's no point in cloning or duping, either, as
mq_send/mq_receive operations are always atomic at the kernel
level and only one thread can have a notification registered
for it.
lib/posix_mq.rb
test/test_posix_mq.rb