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

reading STDIN freezes a system #1133

Open
damianloew opened this issue Aug 21, 2024 · 4 comments
Open

reading STDIN freezes a system #1133

damianloew opened this issue Aug 21, 2024 · 4 comments
Assignees

Comments

@damianloew
Copy link
Contributor

  • Reproduction path:
#include <stdio.h>

int main() {
    char c;
    c = getchar();

    return 0;
}
  • applies to the reast of functions like scanf(), fgets() that reads from stdin and so on
@damianloew
Copy link
Contributor Author

The issue happens after applying the following commit:
ea15 (HEAD) unistd/file: provide safe write/read/open/close functions

@lukileczo
Copy link
Member

Seems to be fixed by @ziemleszcz in phoenix-rtos/libphoenix#376

@badochov
Copy link
Contributor

badochov commented Sep 6, 2024

Shall we close it?

@nalajcie
Copy link
Member

nalajcie commented Sep 6, 2024

The mentioned PR is not yet merged and the issue still persists on master so please keep it open.

The PR doesn't yet fix all of the issues, so it's not merge-ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants