Juan-aga / Minishell

The Unlicense
2 stars 1 forks source link

Handle $? #14

Closed emartinez-dev closed 1 year ago

emartinez-dev commented 1 year ago
Juan-aga commented 1 year ago

the last exit status is in the variable ms->exit_status.

Juan-aga commented 1 year ago

When try it with or without echo it give segmentation fault.

emartinez-dev commented 1 year ago

I am trying to reproduce it and the segfault happens like 70% of the time, but I tried to debug it with lldb and it works 100% of the time while debugging. I have been reading on stackoverflow and it could be that we have a data race reading the variable exit_status