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

Add uksignal compatibility #4

Closed

Conversation

razvanvirtan
Copy link
Contributor

After the uksignal support was integrated to newlib, some changes are required to libgo too.
The changes related to the total signals number need to be reverted when uksignal will provide real-time signals support.

Signed-off-by: Răzvan Vîrtan virtanrazvan@gmail.com

4 signal related functions are now provided trough uksignal.
Remove the stubs from glue.c to avoid linking errors.

Signed-off-by: Răzvan Vîrtan <virtanrazvan@gmail.com>
@razvand razvand self-requested a review October 28, 2021 10:23
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Use "the Go runtime" in the commit message. Use "uksignal" instead of "uksignals" in the commit message.

generated/sigtab.go Outdated Show resolved Hide resolved
generated/runtime_sysinfo.go Outdated Show resolved Hide resolved
@razvand razvand linked an issue Nov 6, 2021 that may be closed by this pull request
@razvand razvand added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Nov 6, 2021
@razvand razvand added this to the v0.6 Dione milestone Nov 6, 2021
At this moment uksignal doesn't support real time
signals (signal codes greater than 31). However, the Go runtime
assumes that it does and it tries to init signals up to SIGRTMAX,
causing any go application to fail. This commit avoids this situation.
These changes should be removed when real time signals support will
be added to uksignal.

Signed-off-by: Răzvan Vîrtan <virtanrazvan@gmail.com>
@razvand razvand self-requested a review November 13, 2021 09:47
Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

All is OK.

Reviewed-by: Razvan Deaconescu razvan.deaconescu@cs.pub.ro

@razvand razvand assigned razvand and unassigned razvanvirtan Nov 27, 2021
@razvand
Copy link
Contributor

razvand commented Nov 27, 2021

Approved-by: Razvan Deaconescu razvan.deaconescu@cs.pub.ro

unikraft-bot pushed a commit that referenced this pull request Nov 27, 2021
4 signal related functions are now provided trough uksignal.
Remove the stubs from glue.c to avoid linking errors.

Signed-off-by: Răzvan Vîrtan <virtanrazvan@gmail.com>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #4
unikraft-bot pushed a commit that referenced this pull request Nov 27, 2021
At this moment uksignal doesn't support real time
signals (signal codes greater than 31). However, the Go runtime
assumes that it does and it tries to init signals up to SIGRTMAX,
causing any go application to fail. This commit avoids this situation.
These changes should be removed when real time signals support will
be added to uksignal.

Signed-off-by: Răzvan Vîrtan <virtanrazvan@gmail.com>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/merged enhancement New feature or request
Projects
No open projects
Status: merged
Development

Successfully merging this pull request may close these issues.

Real time signals in runtime initialization
3 participants