minishell
Minishell Project for École 42
|
Functions for setting up signal handlers. More...
#include "minishell.h"
Functions | |
void | signal_setup (int process) |
Sets up signal handlers. | |
Functions for setting up signal handlers.
void signal_setup | ( | int | process | ) |
Sets up signal handlers.
configures signal handlers based on the provided process type. For the parent process, SIGINT is set to parent_handler_sig, and the SIGQUIT signal is ignored. For the child process, both SIGINT and SIGQUIT are set to their default behavior. For IGNORE, both SIGINT and SIGQUIT are ignored.
[in] | process | An int representing the process type (PARENT or CHILD, IGNORE). |