jos-felipe / minishell

This project is about creating a simple shell.
Apache License 2.0
0 stars 2 forks source link

signals #49

Closed gfantonib closed 1 month ago

jos-felipe commented 1 month ago

Double prompt > prompt > after sending a SIGINT during the execution of a cmd. How to reproduce: sleep 10 CRTL + C

gfantonib commented 1 month ago

Signals tests to guide implementation

SIGINT

  1. Default prompt> ctrl + c exit_status = 130

  2. In execve prompt> cat ctrl + c exit_status = 130

  3. In heredoc prompt> << foo1 << foo2 ctrl + c exit_status = 130

  4. prompt> cat | echo a exit_status = 0

SIGQUIT

  1. Default prompt> ctrl + \

  2. Inside execve prompt> cat ctrl + \ exit_status = 131