From: Christian P. <cp...@se...> - 2005-02-28 12:03:58
|
On Sunday 27 February 2005 18:18, stephan beal wrote: > Hiya! i just corrected a missing var in SimpleApp and came across this > code: > > #ifdef SIGTERM > > ::signal(SIGTERM, &signalHandler); > > #endif > #ifdef SIGQUIT > > ::signal(SIGQUIT, &signalHandler); > > #endif > #ifdef SIGINT > > ::signal(SIGINT, &signalHandler); > > #endif > > Coincidentally... please take a look at the attached class. It greatly > simplifies/safe-ifies this type of manipulation, and is EASY to use. > If it's okay with you i'll put it in the tree (or you can). Where should > it go (in App or System?). The signal-handling code in SimpleApp is obsolete. Signals are now handled by the SignalListener class. The calls to EventQueue::instance() and FdListenerList::instance() should not be commented out, as they create the main-thread instances of them ! I've removed the comments, so that the code calls instance() again. Greetings, Christian |