YASH 0.1
CLI written in C
Loading...
Searching...
No Matches
signals.h File Reference

Signal handling functions for the YASH shell. More...

Go to the source code of this file.

Functions

void setup_signal_handlers (void)
 Setup signal handlers for SIGINT, SIGTSTP, and SIGCHLD.
 
void sigchld_handler (int sig)
 SIGCHLD handler.
 
void sigint_handler (int sig)
 SIGINT handler (Ctrl-C)
 
void sigtstp_handler (int sig)
 SIGTSTP handler (Ctrl-Z)
 

Detailed Description

Signal handling functions for the YASH shell.

Author
Nathan Lemma
Date
09-16-2025

This header file contains the signal handling functions for the YASH shell.

Function Documentation

◆ sigchld_handler()

void sigchld_handler ( int sig)

SIGCHLD handler.

Parameters
sigSignal number

◆ sigint_handler()

void sigint_handler ( int sig)

SIGINT handler (Ctrl-C)

Parameters
sigSignal number

◆ sigtstp_handler()

void sigtstp_handler ( int sig)

SIGTSTP handler (Ctrl-Z)

Parameters
sigSignal number