Skip to content

Fix exec bugs - #48

Merged
Melow-code merged 3 commits into
mainfrom
fix-exec
Oct 29, 2026
Merged

Melow-code merged 3 commits into
mainfrom
fix-exec

Conversation

@Melow-code

Copy link
Copy Markdown
Collaborator

Here are the bugs that got fixed, some fixes are temporary

  1. Exit status being overwritten to 1 after end of built-ins.
    exit 123123124124124
    gives 220 not 1

  2. Fd's still being open after exiting minishell
    so what i've don is check if the shell is exiting with the is_exiting flag and close the stdin and stdout again.
    this is weird so i will make more thorough testing later

quel shell quits there is 2 fs open, the stdin and the stdout.
For the moment i am just checking if the bool (is_exitting) and if it's
the case then i close those two fds but i must find how and why they are
open before.
@Melow-code Melow-code added the bug Something isn't working label Oct 29, 2026
@Melow-code
Melow-code merged commit 9d83d7e into main Oct 29, 2026
2 checks passed
@Melow-code
Melow-code deleted the fix-exec branch October 29, 2026 12:44
@Melow-code
Melow-code restored the fix-exec branch October 29, 2026 12:44
@Melow-code
Melow-code deleted the fix-exec branch October 29, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants