inozo22 / minishell

This project is about creating a simple shell.
0 stars 0 forks source link

[Bug]: return value with ctrl+C #30

Closed inozo22 closed 1 year ago

inozo22 commented 1 year ago

What happened?

After ctrl+C, acording to print the return value is 1, but if I do echo $? prints 0

Error severity

Better fix it

Relevant log output

No response

inozo22 commented 1 year ago

It’s done, because the signal handler for SIGQUIT was resetting g_return_val after ctrl+C