There is actually a specific area of the brain known as the bilateral vomitation center. It notes when your tummy is upset and makes the final decision whether to barf or not to barf.