-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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>
There was a problem hiding this 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.
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>
17683fc
to
432f22b
Compare
There was a problem hiding this 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
Approved-by: Razvan Deaconescu razvan.deaconescu@cs.pub.ro |
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
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
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