|
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. | |
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(), PlaceX, ProgramName, sig_restart, and sig_shutdown.
Referenced by CtwmNextEvent().
Setup signal handlers (run during startup)
Definition at line 34 of file signals.c.
References PlaceX, sh_restart(), and sh_shutdown().
Referenced by ctwm_main().
Set flag to restart.
Backend for SIGHUP.
Definition at line 102 of file signals.c.
References PlaceX, ProgramName, ProgramNameLen, sig_restart, and SignalFlag.
Referenced by setup_signal_handlers().
Set flag to shutdown.
Backend for SIGTERM etc.
Definition at line 116 of file signals.c.
References PlaceX, ProgramName, ProgramNameLen, sig_shutdown, and SignalFlag.
Referenced by setup_signal_handlers().
Definition at line 22 of file signals.c.
Referenced by handle_signal_flag(), and sh_restart().
Definition at line 23 of file signals.c.
Referenced by handle_signal_flag(), and sh_shutdown().
Some signal flag has been set.
Definition at line 27 of file signals.c.
Referenced by CtwmNextEvent(), sh_restart(), and sh_shutdown().