tico 0.1
Mechanical Watch Terminal Timegrapher
Functions
Mysignal Library

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...
 

Detailed Description

Signal handling utilities.

Function Documentation

◆ setSignalAction()

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.

Parameters
appStatePointer to the AppState struct holding application state variables.

◆ setupBlockSignals()

void setupBlockSignals ( sigset_t *  new_set)

@

Parameters
new_setA 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.

◆ sigintHandler()

void sigintHandler ( int  signal)

@ (+) width changes (SIGWINCH)

Parameters
signalThe signal number received (should be SIGINT)