42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
signals.c File Reference

The file containing the signals functions. More...

Functions

void status_handler (int status)
 Display the signal returned by executing a command.
 
void print_line (int signal)
 Display the prompt when the SIGINT signal is received.
 
void print_exit (int signal)
 Display "exit" when the a CRTL+D is received.
 

Detailed Description

The file containing the signals functions.

Function Documentation

◆ print_exit()

void print_exit ( int signal)

Display "exit" when the a CRTL+D is received.

Note
I disabled it because it didn't work
Parameters
signalThe signal
Returns
void

◆ print_line()

void print_line ( int signal)

Display the prompt when the SIGINT signal is received.

Parameters
signalThe signal
Returns
void

◆ status_handler()

void status_handler ( int status)

Display the signal returned by executing a command.

Parameters
signalThe signal
Returns
void