/*
* call-seq:
* mq.autoclose = boolean => boolean
*
* Determines whether or not the _mq_ will be closed automatically
* at finalization.
*/
static VALUE setautoclose(VALUE self, VALUE autoclose)
{
struct posix_mq *mq = get(self, 1);
MQ_IO_SET_AUTOCLOSE(mq, autoclose);
mq->autoclose = RTEST(autoclose) ? 1 : 0;
return autoclose;
}