Do not trust locally cached mq_flags
commit6d22887be14c6f543d86425545e79eff92d97714
authorEric Wong <normalperson@yhbt.net>
Sun, 27 Feb 2011 09:56:34 +0000 (27 09:56 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 27 Feb 2011 11:02:45 +0000 (27 11:02 +0000)
tree8be0ee7cb7e31eb9dbb136a3c6777e6811051a7b
parentc02944edaed780bb20ad98ecdd11463d945b36ca
Do not trust locally cached mq_flags

These flags can be changed in the parent or child
process, so we will always have to run mq_getattr()
to check it.  This removes the GVL-keeping non-blocking
optimizations but we'll gain some soon.
ext/posix_mq/posix_mq.c
test/test_posix_mq.rb