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

Fix typo in helper_thread.c and run block_signals(void) function in linux only #1628

Closed
wants to merge 2 commits into from
Closed

Conversation

shailevi23
Copy link
Contributor

The typo fix will now compile block_signals(void) correctly.

Please confirm that your commit message(s) follow these guidelines:

Compiling the code with the typo fix of "#ifdef CONFIG_PTHREAD_SIGMASK" will show that ret is unknown, hence, we are adding the line "int ret;".
This fix of typo will fix some other bugs I've encountered.

Signed-off-by: Shai Levy shailevy23@gmail.com

The typo fix will now compile block_signals(void) correctly.
@vincentkfu
Copy link
Collaborator

Please fix the Windows msys2 build error. It looks like pthread_sigmask may be defined to be a noop in msys2. Consider changing the test in the configure script to trigger the same warning that is in the build failure to fail to detect pthread_sigmask when it is defined to be a noop.

@axboe
Copy link
Owner

axboe commented Sep 13, 2023

@vincentkfu I think maybe we just delete the code? It's clearly been disabled forever and we haven't seen any signal related issues there.

@vincentkfu
Copy link
Collaborator

@vincentkfu I think maybe we just delete the code? It's clearly been disabled forever and we haven't seen any signal related issues there.

I haven't seen any signal related issues either although the commit message does mention some bugs resolved by this fix. Without any details of these bugs I don't have strong feelings either way.

@shailevi23
Copy link
Contributor Author

@axboe
I had a bug which was fixed adding this lines,
Hence, the signal was sent and blocked so please don’t delete it.

@axboe
Copy link
Owner

axboe commented Sep 13, 2023

Ah, you did mention that in the initial part. Let's get a patch done first then that fixes the windows side, and then we can have the fix as the next patch.

Compiling the code with the typo fix of "#ifdef CONFIG_PTHREAD_SIGMASK" will show that ret is unknown, hence, we are adding the line "int ret;".
This fix of typo will fix some other bugs I've encountered.

Also, sigmask works in linux environment, so we will if defined it to linux only.

Signed-off-by: Shai Levy shailevy23@gmail.com
@shailevi23 shailevi23 changed the title Fix typo in helper_thread.c Fix typo in helper_thread.c and run block_signals(void) function in linux only Sep 14, 2023
@shailevi23 shailevi23 closed this Sep 14, 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

Successfully merging this pull request may close these issues.

3 participants