How do you deal with the fact, your mother is dying of lung cancer and her days have been numbered?

My mother was diagnosed with stage 3b large cell lung cancer. She has been undergoing chemo and radiation treatments for several weeks now. She is weak and just a shell of who she used to be. How am I supposed to keep smiling when I am watching her fade into death?