diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-11-19 11:14:11 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-11-19 11:14:11 +0100 |
| commit | c9ae0f69d87e64cd7d1839164cee172b27657b11 (patch) | |
| tree | 5635ba71b0f51ad9487971b33e94a797aa994694 /tools/syz-crush | |
| parent | 59f7c210d0584164a821bde6686debe169660f30 (diff) | |
vm: add ability to interrupt commands
This is required for crash reproduction in manager.
Diffstat (limited to 'tools/syz-crush')
| -rw-r--r-- | tools/syz-crush/crush.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/syz-crush/crush.go b/tools/syz-crush/crush.go index f1dfc5a53..5b26165e3 100644 --- a/tools/syz-crush/crush.go +++ b/tools/syz-crush/crush.go @@ -105,9 +105,9 @@ func runInstance(cfg *config.Config, vmCfg *vm.Config) { return } - outc, errc, err := inst.Run(time.Hour, fmt.Sprintf( - "%v -executor=%v -repeat=0 -procs=%v -cover=0 -sandbox=%v %v", - execprogBin, executorBin, cfg.Procs, cfg.Sandbox, logFile)) + cmd := fmt.Sprintf("%v -executor=%v -repeat=0 -procs=%v -cover=0 -sandbox=%v %v", + execprogBin, executorBin, cfg.Procs, cfg.Sandbox, logFile) + outc, errc, err := inst.Run(time.Hour, nil, cmd) if err != nil { Logf(0, "failed to run execprog: %v", err) return |
