test(runner): verify sandbox isolation with a hostile program suite
This commit is contained in:
1 parent
afee564bf4
commit
e858280d91
38 files changed
+1359
-168
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
// Timeout survival: ignores every catchable signal and spins; only SIGKILL
|
||||
// from the supervisor stops it.
|
||||
package main
|
||||
|
||||
import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func main() {
|
||||
signal.Ignore(syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP, syscall.SIGXCPU, syscall.SIGALRM, syscall.SIGUSR1)
|
||||
for {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user