Continue persistently, persevere, as in This cough is hanging on much longer than I expected, or He was hanging on, hoping business would improve when interest rates went down. This usage was sometimes embellished to
hang on by one's eyelashes or eyebrows or eyelids, meaning “to persist at any cost.” [Second half of 1800s]