You could easily do a syscall to get a signalfd file descriptor, then call os.NewFile to turn that numerical FD into a Go *os.File (<a href="https:&#x2F;&#x2F;golang.org&#x2F;pkg&#x2F;os&#x2F;#NewFile" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;pkg&#x2F;os&#x2F;#NewFile</a>).  It seems like that should work fine!