changed SIGNAL handling to:

SIGHUP: restartfluxbox
  SIGUSR1: load configuration
  SIGUSR2: reload configuration

TODO:

  whats the essential difference between "loading" and "reloading"?
  maybe we can drop one of that functions
This commit is contained in:
mathias 2005-02-02 15:22:58 +00:00
parent 38e16876a8
commit 78c0048b5c

View file

@ -1072,13 +1072,13 @@ void Fluxbox::handleSignal(int signum) {
waitpid(-1, 0, WNOHANG | WUNTRACED); waitpid(-1, 0, WNOHANG | WUNTRACED);
break; break;
case SIGHUP: case SIGHUP:
load_rc(); restart();
break; break;
case SIGUSR1: case SIGUSR1:
reload_rc(); load_rc();
break; break;
case SIGUSR2: case SIGUSR2:
rereadMenu(); reload_rc();
break; break;
case SIGSEGV: case SIGSEGV:
abort(); abort();