Good Morning/Afternoon/Evening,
I am currently patching my local go runtime to fix a bug it has. I would
like to make the signal() syscall, or at least the sigaction() syscall from
inside the syscall package but it looks like those functions are defined as
private within the runtime package.
I see that both SYS_SIGACTION and SYS_SIGNAL are defined in the
zsysnum_{os}_{arch}.go files, and it looks like these enumerations are
meant to be used with the RawSyscall, RawSyscall6, or rawSyscallNoError
functions.
My question is: how does a call to RawSyscall(SYS_SIGNAL, .....) translate
to a call to signal(signum, handler)? Do I add the usual arguments to
signal to RawSyscall and then ignore the rest?
Thanks,
Aidan
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/7c8acd74-a4fb-4e79-ac3a-c6a09421b8cdn%40googlegroups.com.