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

[TODO] Change to perror() for systemcall error, where possible #86

Open
itislu opened this issue Jan 14, 2024 · 0 comments
Open

[TODO] Change to perror() for systemcall error, where possible #86

itislu opened this issue Jan 14, 2024 · 0 comments
Labels
lea wontfix Lea will not work on this medium priority This issue would be nice to be fixed todo There are still some things left to do

Comments

@itislu
Copy link
Collaborator

itislu commented Jan 14, 2024

The argument to perror() gets printed first, so most of the time it should be our PROGRAM_NAME, like so:

perror(PROGRAM_NAME)

IMPORTANT

If an error occurred, no other system call should be called before perror(), otherwise errno could get updated and the output would be incorrect.

@itislu itislu added the todo There are still some things left to do label Jan 14, 2024
@itislu itislu added the medium priority This issue would be nice to be fixed label Feb 2, 2024
@LeaYeh LeaYeh added the lea wontfix Lea will not work on this label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lea wontfix Lea will not work on this medium priority This issue would be nice to be fixed todo There are still some things left to do
Projects
None yet
Development

No branches or pull requests

2 participants