Entertainment

‘Mother’ goes on with Segel

It lives!

How I Met Your Mother” will return to CBS for a ninth season — after star Jason Segel agreed to one more go-’round.

Segel, who has been with the show for all eight seasons, had “decided to bail and leave the cast hanging” — but said “Yes” at the last minute for one more season, according to deadline.com.

While “HIMYM” still performs strongly on CBS’s Monday-night lineup, the show was thought to be dead in the water when Segel opted not to return to pursue his movie career.

Segel is starring in the just-released “This Is 40” after roles in “The Five-Year Engagement,” “I Love You, Man” and “Forgetting Sarah Marshall.”

“He just got turned around . . . at the last second,” a source told deadline.com. “The show was literally dead.”

“HIMYM” anchors a strong Monday-night lineup on CBS, which includes “Two Broke Girls” and “Mike and Molly.”

Josh Radnor, Cobie Smulders, Neil Patrick Harris and Alyson Hannigan co-star in the series about a group of friends living in New York City.