From what I've heard, they would plan to deliberately cut off communication, so that the entire world would not listen to two men slowly dying.
Whenever asked about cyanide, the astronauts always laughed, because if they wanted to kill themselves, there were about a million ways to do so. They didn't need cyanide.