Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revamp of signals #16

Closed
saladuit opened this issue Feb 10, 2023 · 3 comments
Closed

revamp of signals #16

saladuit opened this issue Feb 10, 2023 · 3 comments

Comments

@saladuit
Copy link
Owner

saladuit commented Feb 10, 2023

There are a few instances that should be made:

  • Canonical mode
  • Non Canonincal mode
  • Signal handler for when a child exits to catch their exit status
@saladuit saladuit converted this from a draft issue Feb 10, 2023
@saladuit saladuit removed this from Minishell Feb 10, 2023
@saladuit
Copy link
Owner Author

Difference between canonical and non-canonical mode:
In canonical mode, the terminal driver buffers input until a line-ending character is received (usually the Enter key). Once a line-ending character is received, the entire line is returned to the program reading from the terminal. Canonical mode is typically used for command-line interfaces, where the user inputs a command and then presses Enter to execute it.

In non-canonical mode, input is not buffered by the terminal driver and is returned to the program as soon as it is received. Non-canonical mode is typically used for applications that require real-time input, such as games or other interactive programs.

@saladuit
Copy link
Owner Author

There is are leaks when the sheldon is in canonical mode and one sends a kill signal.

@saladuit
Copy link
Owner Author

This will be further handled by #13 because it is a duplicate

@saladuit saladuit closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant