NataliaMedeiros / minishell

1 stars 0 forks source link

implement signals #19

Open NataliaMedeiros opened 3 months ago

NataliaMedeiros commented 3 months ago

Description: Implement signals in order to use the follow commands: ◦ ctrl-C displays a new prompt on a new line. ◦ ctrl-D exits the shell. ◦ ctrl-\ does nothing.

Rules: Avoid using more than one global variable to indicate a received signal. Consider the implications: this approach ensures that your signal handler will not access your main data structures. Be careful. This global variable cannot provide any other information or data access than the number of a received signal. Therefore, using "norm" type structures in the global scope is forbidden.