minishell
Minishell Project for École 42
Loading...
Searching...
No Matches
signal_setup.c File Reference

Functions for setting up signal handlers. More...

#include "minishell.h"
Include dependency graph for signal_setup.c:

Functions

void signal_setup (int process)
 Sets up signal handlers.
 

Detailed Description

Functions for setting up signal handlers.

Function Documentation

◆ signal_setup()

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.

Parameters
[in]processAn int representing the process type (PARENT or CHILD, IGNORE).