using new SignalEventHandler
This commit is contained in:
parent
9682bdd1a5
commit
1eed220f98
1 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: fluxbox.cc,v 1.81 2002/11/15 12:19:17 fluxgen Exp $
|
// $Id: fluxbox.cc,v 1.82 2002/11/27 22:00:19 fluxgen Exp $
|
||||||
|
|
||||||
|
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
@ -1558,11 +1558,11 @@ void Fluxbox::doWindowAction(Keys::KeyAction action, const int param) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle system signals here
|
// handle system signals here
|
||||||
void Fluxbox::handleEvent(SignalEvent * const sig) {
|
void Fluxbox::handleSignal(int signum) {
|
||||||
I18n *i18n = I18n::instance();
|
I18n *i18n = I18n::instance();
|
||||||
static int re_enter = 0;
|
static int re_enter = 0;
|
||||||
|
|
||||||
switch (sig->signum) {
|
switch (signum) {
|
||||||
case SIGCHLD: // we don't want the child process to kill us
|
case SIGCHLD: // we don't want the child process to kill us
|
||||||
waitpid(-1, 0, WNOHANG | WUNTRACED);
|
waitpid(-1, 0, WNOHANG | WUNTRACED);
|
||||||
break;
|
break;
|
||||||
|
@ -1588,7 +1588,7 @@ void Fluxbox::handleEvent(SignalEvent * const sig) {
|
||||||
i18n->getMessage(
|
i18n->getMessage(
|
||||||
FBNLS::BaseDisplaySet, FBNLS::BaseDisplaySignalCaught,
|
FBNLS::BaseDisplaySet, FBNLS::BaseDisplaySignalCaught,
|
||||||
"%s: signal %d caught\n"),
|
"%s: signal %d caught\n"),
|
||||||
getApplicationName(), sig);
|
getApplicationName(), signum);
|
||||||
|
|
||||||
if (! isStartup() && ! re_enter) {
|
if (! isStartup() && ! re_enter) {
|
||||||
re_enter = 1;
|
re_enter = 1;
|
||||||
|
|
Loading…
Reference in a new issue