rem: kapp->exec();
add: int ret = kapp->exec();
context: int main(int argc, char *argv[]){  // WABA: KMail is a KUniqueApplication. Unfortunately this makes debugging  // a bit harder: You should pass --nofork as commandline argument when using  // a debugger. In gdb you can do this by typing "set args --nofork" before  // typing "run".  KAboutData about("kmail", I18N_NOOP("KMail"),                   KMAIL_VERSION,                   description,		   KAboutData::License_GPL,                   "(c) 1997-2000, The KMail developers" );  KCmdLineArgs::init(argc, argv, &about);  KCmdLineArgs::addCmdLineOptions( kmoptions ); // Add kmail options  if (!KMailApplication::start())     exit(0);  KMailApplication app;  kapp->dcopClient()->suspend(); // Don't handle DCOP requests yet  //local, do the init  KMKernel kmailKernel;  kmailKernel.init();  // and session management  kmailKernel.doSessionManagement();  // any dead letters?  kmailKernel.recoverDeadLetters();  setSignalHandler(signalHandler);  kapp->dcopClient()->resume(); // Ok. We are ready for DCOP requests.  // Go!  kapp->exec();  // clean up  kmailKernel.cleanup();}