Transcript for Whoopi Goldberg's return to 'The View'
We are back and so is whoopi Goldberg. She surprised fans with her return to "The view" after a life-threatening illness Ken her off the show for more than a month. Linsey Davis spoke to whoopi's co-hosts on "The view" and she's here with details. Reporter: She still has a lingering cough and her immune system is xroemsed but her doctors give her permission to appear on "The view" yesterday and it was such a surprise, even the show's executive producers didn't know about it until moments before it happened. Welcome to "The view." Reporter: It was a moment no one, not even the co-hosts saw Whoopi is still on the mend. We're hoping she'll be back here soon. Maybe next week. We'll see. Hurry back, whoopi and get -- Reporter: Whoopi Goldberg making a surprise return to "The view" after more than a month away hospitalized for three weeks for double pneumonia and the beloved host clearly happy to be reunited with her TV family. This is my first for a out. I am -- I'm not there yet. I know that. But the only way it's going to get better is if I begin so this is my beginning. Reporter: Moments before filming whoopi's excitement backstage was palpable. Here she comes. Reporter: The egot winner got serious when opening up about how close doctors say she came to death. There's death and here's me. That's how it was. And so this is stuff that, you know, really for everybody, you know, you think you can push through because you got a little cold, you say I'll keep going. And you think because you've healed quick before that something crazy can't happen, well, it can. The scariest moment was hearing my doctors say to me, you do realize how close to death you were. Reporter: Her co-hosts speak to "Gma" moments after the show. We did not expect it. We were really genuinely shocked. I'm glad I didn't go into labor because I was truly that excited to see her. I miss her terribly and she is one of the all-time greatest people in the world ever. The entire team of "The view" came out on stage and one by one hugged her. Some of them cried. What she means to this show, she is, you know, the fairy godmother of "The view." We miss her very, very, very much and the fact that she's coming back means everything to all of us. Whoopi says she's going to ease her way back to work as she regains her strength. She stayed for only the first half of the show but left so she could rest. She's hopeful to return again on Monday, guys. I hope she does. Thanks very much. Let's bring in Dr. Jen Ashton. We know pneumonia is serious but I didn't realize it's this life-threatening so quickly. Absolutely. So pneumonia is an infection in the lungs and can be caused by bacteria, viruses or fungus, CDC estimates 1 million cases a year and about 50,000 deaths so absolutely it can be fatal and basically it causes fluid or pus to fill up in those air sacs. We can't oxygenate our blood. If you look at this x-ray, that circled area is what we call a consolidated area of infection so that's what pneumonia looks like on a chest x-ray. There's in concern about the connection between double pneumonia and sepsis. Any infection spreads from its original site into the blood, that's called sepsis. That also can be fatal and that can affect other organ systems like your heart, kidney, can cause symptoms like shortness of breath, discolored skin around the mouth or nose, severe pain. This is a medical emergency. This requires hospitalized treatment. There is a vaccine. Would it have worked. For one type it's called the pne muchltovax. It's just a good opportunity to increase everyone's awareness. We're so glad she's back. You'll be back in our next hour. Yep. A new study about women and stressful jobs and diabetes.
This transcript has been automatically generated and may not be 100% accurate.