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 failing specs on FreeBSD #15093

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

ysbaddaden
Copy link
Contributor

No description provided.

Comment on lines +22 to +24
# can't use SIGUSR1/SIGUSR2 on FreeBSD because Boehm uses them to suspend/resume threads
signal1 = {% if flag?(:freebsd) %} Signal.new(LibC::SIGRTMAX - 1) {% else %} Signal::USR1 {% end %}
signal2 = {% if flag?(:freebsd) %} Signal.new(LibC::SIGRTMAX - 2) {% else %} Signal::USR2 {% end %}
Copy link
Member

Choose a reason for hiding this comment

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

question: Could we use RT signals on all platforms, instead of USR1, USR2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe, though I'm not sure all platforms have SIGRT signals, and USR1 and USR2 should usually be available ... I wonder why would Boehm use USR1 and USR2 when it can use SIGRT signals (and does so, but only when told to) 🤷

@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 18, 2024
@straight-shoota straight-shoota changed the title Fix: failing specs on FreeBSD Fix failing specs on FreeBSD Oct 19, 2024
@straight-shoota straight-shoota merged commit fa25838 into crystal-lang:master Oct 19, 2024
66 checks passed
@ysbaddaden ysbaddaden deleted the fix/specs-on-freebsd branch October 21, 2024 09:10
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.

2 participants