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

rz_core_task_join: Return fine-grained error values #4505

Merged
merged 4 commits into from
May 22, 2024
Merged

Conversation

kazarmy
Copy link
Member

@kazarmy kazarmy commented May 20, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

This pr makes rz_core_task_join() return fine-grained error values.

Test plan

All builds except the woodpecker build are green.

Closing issues

...

librz/include/rz_core.h Outdated Show resolved Hide resolved
Comment on lines 1146 to 1147
RZ_CORE_TASK_JOIN_ERR_NO_SEM_GROUP
} RzCoreTaskJoinErr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a command to debug this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i mean, it gets returned but it is not used anywhere. maybe is worth logging it via RZ_LOG_DEBUG or similar.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree that logging this can be useful ... currently, this is a symptom and not the cause though

@kazarmy kazarmy merged commit 84e63af into dev May 22, 2024
45 of 47 checks passed
@kazarmy kazarmy deleted the RzCoreTaskJoinErr branch May 22, 2024 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants