|
CTWM
|
#include "ctwm.h"#include <signal.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include "ctwm_shutdown.h"#include "signals.h"Go to the source code of this file.
Functions | |
| static void | sh_restart (int signum) |
| Set flag to restart. | |
| static void | sh_shutdown (int signum) |
| Set flag to shutdown. | |
| void | setup_signal_handlers (void) |
| Setup signal handlers (run during startup). | |
| void | handle_signal_flag (Time t) |
| Handle stuff set by a signal flag. | |
Variables | |
| static bool | sig_restart = false |
| static bool | sig_shutdown = false |
| bool | SignalFlag = false |
| Some signal flag has been set. | |
| void handle_signal_flag | ( | Time | t | ) |
Handle stuff set by a signal flag.
Could be a Restart, could be a Shutdown...
Definition at line 62 of file signals.c.
References DoRestart(), DoShutdown(), ProgramName, sig_restart, and sig_shutdown.
Referenced by CtwmNextEvent().
| void setup_signal_handlers | ( | void | ) |
Setup signal handlers (run during startup).
Definition at line 34 of file signals.c.
References sh_restart(), and sh_shutdown().
Referenced by ctwm_main().
|
static |
Set flag to restart.
Backend for SIGHUP.
Definition at line 102 of file signals.c.
References ProgramName, ProgramNameLen, sig_restart, and SignalFlag.
Referenced by setup_signal_handlers().
|
static |
Set flag to shutdown.
Backend for SIGTERM etc.
Definition at line 116 of file signals.c.
References ProgramName, ProgramNameLen, sig_shutdown, and SignalFlag.
Referenced by setup_signal_handlers().
|
static |
Definition at line 22 of file signals.c.
Referenced by handle_signal_flag(), and sh_restart().
|
static |
Definition at line 23 of file signals.c.
Referenced by handle_signal_flag(), and sh_shutdown().
| bool SignalFlag = false |
Some signal flag has been set.
Definition at line 27 of file signals.c.
Referenced by CtwmNextEvent(), sh_restart(), and sh_shutdown().