aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-execprog
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-02-03 14:58:39 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-02-03 16:09:45 +0000
commit0623a4e909858cf6a96233d5df5a60122052781c (patch)
tree4d0fceb103b6f4bb6c7dafe201aa1fc0ac081b43 /tools/syz-execprog
parenta21a8419b67b5ef8ebc3d6dd834d065e6860c41f (diff)
pkg/rpcserver: refactor RunLocal
Accept context as a function argument. Split out the code that creates a syz-executor process instance.
Diffstat (limited to 'tools/syz-execprog')
-rw-r--r--tools/syz-execprog/execprog.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go
index 4ab808ad0..d2435141e 100644
--- a/tools/syz-execprog/execprog.go
+++ b/tools/syz-execprog/execprog.go
@@ -181,10 +181,9 @@ func main() {
Executor: *flagExecutor,
HandleInterrupts: true,
GDB: *flagGDB,
- Context: rpcCtx,
MachineChecked: ctx.machineChecked,
}
- if err := rpcserver.RunLocal(cfg); err != nil {
+ if err := rpcserver.RunLocal(rpcCtx, cfg); err != nil {
tool.Fail(err)
}
}