]> xenbits.xensource.com Git - unikraft/libs/libgo.git/commitdiff
Remove real time signals references
authorRazvan Virtan <razvanvirtan@gmail.com>
Mon, 4 Oct 2021 17:21:19 +0000 (20:21 +0300)
committerUnikraft <monkey@unikraft.io>
Sat, 27 Nov 2021 18:29:06 +0000 (18:29 +0000)
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

generated/runtime_sysinfo.go
generated/sigtab.go

index 67702d57a9d407a6fab6355b88ddb3af8d6cceb2..1133ae90bd6b27b4803f77ef79cc03a9b35ed182 100644 (file)
@@ -2408,7 +2408,8 @@ const __POSIX_SYNCHRONIZED_IO = 200809
 const _SYS_close = ___NR_close
 const _PR_SET_UNALIGN = 6
 const _SYS_brk = ___NR_brk
-const __NSIG = (___SIGRTMAX + 1)
+// FIXME : const __NSIG=(___SIGRTMAX + 1) when RT signals are added to uksignal
+const __NSIG = 32
 const __POSIX_FD_SETSIZE = __POSIX_OPEN_MAX
 const _ENOTTY = 25
 const _RTA_PRIORITY = 6
index 06b46af0a687e54668288ff3ff74e767c20b8d6b..08a026e32f857e3654e943d0f902cfc38bef11a3 100644 (file)
@@ -35,37 +35,38 @@ var sigtable = [...]sigTabT{
        _SIGSTKFLT:  {_SigThrow + _SigUnblock, "SIGSTKFLT: stack fault"},
        _SIGPWR:     {_SigNotify, "SIGPWR: power failure restart"},
        _SIGPOLL:    {_SigNotify, "SIGPOLL: pollable event occurred"},
-       32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
-       33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
-       34: {_SigNotify, "signal 34"},
-       35: {_SigNotify, "signal 35"},
-       36: {_SigNotify, "signal 36"},
-       37: {_SigNotify, "signal 37"},
-       38: {_SigNotify, "signal 38"},
-       39: {_SigNotify, "signal 39"},
-       40: {_SigNotify, "signal 40"},
-       41: {_SigNotify, "signal 41"},
-       42: {_SigNotify, "signal 42"},
-       43: {_SigNotify, "signal 43"},
-       44: {_SigNotify, "signal 44"},
-       45: {_SigNotify, "signal 45"},
-       46: {_SigNotify, "signal 46"},
-       47: {_SigNotify, "signal 47"},
-       48: {_SigNotify, "signal 48"},
-       49: {_SigNotify, "signal 49"},
-       50: {_SigNotify, "signal 50"},
-       51: {_SigNotify, "signal 51"},
-       52: {_SigNotify, "signal 52"},
-       53: {_SigNotify, "signal 53"},
-       54: {_SigNotify, "signal 54"},
-       55: {_SigNotify, "signal 55"},
-       56: {_SigNotify, "signal 56"},
-       57: {_SigNotify, "signal 57"},
-       58: {_SigNotify, "signal 58"},
-       59: {_SigNotify, "signal 59"},
-       60: {_SigNotify, "signal 60"},
-       61: {_SigNotify, "signal 61"},
-       62: {_SigNotify, "signal 62"},
-       63: {_SigNotify, "signal 63"},
-       64: {_SigNotify, "signal 64"},
+       // FIXME: uncomment when RT signals support is added to uksignal
+       // 32: {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
+       // 33: {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
+       // 34: {_SigNotify, "signal 34"},
+       // 35: {_SigNotify, "signal 35"},
+       // 36: {_SigNotify, "signal 36"},
+       // 37: {_SigNotify, "signal 37"},
+       // 38: {_SigNotify, "signal 38"},
+       // 39: {_SigNotify, "signal 39"},
+       // 40: {_SigNotify, "signal 40"},
+       // 41: {_SigNotify, "signal 41"},
+       // 42: {_SigNotify, "signal 42"},
+       // 43: {_SigNotify, "signal 43"},
+       // 44: {_SigNotify, "signal 44"},
+       // 45: {_SigNotify, "signal 45"},
+       // 46: {_SigNotify, "signal 46"},
+       // 47: {_SigNotify, "signal 47"},
+       // 48: {_SigNotify, "signal 48"},
+       // 49: {_SigNotify, "signal 49"},
+       // 50: {_SigNotify, "signal 50"},
+       // 51: {_SigNotify, "signal 51"},
+       // 52: {_SigNotify, "signal 52"},
+       // 53: {_SigNotify, "signal 53"},
+       // 54: {_SigNotify, "signal 54"},
+       // 55: {_SigNotify, "signal 55"},
+       // 56: {_SigNotify, "signal 56"},
+       // 57: {_SigNotify, "signal 57"},
+       // 58: {_SigNotify, "signal 58"},
+       // 59: {_SigNotify, "signal 59"},
+       // 60: {_SigNotify, "signal 60"},
+       // 61: {_SigNotify, "signal 61"},
+       // 62: {_SigNotify, "signal 62"},
+       // 63: {_SigNotify, "signal 63"},
+       // 64: {_SigNotify, "signal 64"},
 }