Fixed msgqueue segment fault.