![]() |
YASH 0.1
CLI written in C
|
Signal handling functions for the YASH shell. More...
Functions | |
| 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) | |
| void | setup_signal_handlers (void) |
| Setup signal handlers for SIGINT, SIGTSTP, and SIGCHLD. | |
Variables | |
| volatile sig_atomic_t | child_status_changed = 0 |
| Flag indicating that a child process status has changed. | |
| pid_t | foreground_pgid = 0 |
| Process group ID of the current foreground process. | |
Signal handling functions for the YASH shell.
This file contains the signal handling functions for the YASH shell.
| void sigchld_handler | ( | int | sig | ) |
SIGCHLD handler.
| sig | Signal number |
| void sigint_handler | ( | int | sig | ) |
SIGINT handler (Ctrl-C)
| sig | Signal number |
| void sigtstp_handler | ( | int | sig | ) |
SIGTSTP handler (Ctrl-Z)
| sig | Signal number |