|
tico 0.1
Mechanical Watch Terminal Timegrapher
|
Signal handling utilities. More...
Functions | |
| void | sigintHandler (int signal) |
| @ (+) width changes (SIGWINCH) More... | |
| void | setSignalAction (struct AppState *appState) |
| @ . More... | |
| void | setupBlockSignals (sigset_t *new_set) |
| @ More... | |
Signal handling utilities.
| void setSignalAction | ( | struct AppState * | appState | ) |
@ .
This function sets the signal handlers for SIGINT and SIGWINCH to the sigintHandler function. If there is an error setting the signal handlers, the function will print an error message and exit with an error code.
| appState | Pointer to the AppState struct holding application state variables. |
| void setupBlockSignals | ( | sigset_t * | new_set | ) |
@
| new_set | A pointer to a sigset_t structure that will be used to block the SIGINT and SIGWINCH signals. The function will modify this structure to include the blocked signals. |
| void sigintHandler | ( | int | signal | ) |
@ (+) width changes (SIGWINCH)
| signal | The signal number received (should be SIGINT) |