What does buy the farm mean?

buy the farm meaning in General Dictionary

pass from real life and lose all physical characteristics and functions required to sustain life