aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ipc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-05-04 14:24:51 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-05-04 14:24:51 +0200
commit08141db61a7a947b701d06aa5c90cd825c55e350 (patch)
tree3a47d7c702f152f5f1e5198731227067607b98d6 /pkg/ipc
parent0f503c18d939e6dde67eb2b2d44202db44fe9de6 (diff)
gometalinter: enable line length checking
120 columns looks like a reasonable limit and requires few changes to existing code. Update #538
Diffstat (limited to 'pkg/ipc')
-rw-r--r--pkg/ipc/ipc.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go
index 5128c61ef..180f78cd7 100644
--- a/pkg/ipc/ipc.go
+++ b/pkg/ipc/ipc.go
@@ -67,9 +67,10 @@ var (
flagSandbox = flag.String("sandbox", "none", "sandbox for fuzzing (none/setuid/namespace)")
flagDebug = flag.Bool("debug", false, "debug output from executor")
flagTimeout = flag.Duration("timeout", 0, "execution timeout")
- flagAbortSignal = flag.Int("abort_signal", 0, "initial signal to send to executor in error conditions; upgrades to SIGKILL if executor does not exit")
- flagBufferSize = flag.Uint64("buffer_size", 0, "internal buffer size (in bytes) for executor output")
- flagIPC = flag.String("ipc", "", "ipc scheme (pipe/shmem)")
+ flagAbortSignal = flag.Int("abort_signal", 0, "initial signal to send to executor"+
+ " in error conditions; upgrades to SIGKILL if executor does not exit")
+ flagBufferSize = flag.Uint64("buffer_size", 0, "internal buffer size (in bytes) for executor output")
+ flagIPC = flag.String("ipc", "", "ipc scheme (pipe/shmem)")
)
type ExecOpts struct {
@@ -375,7 +376,9 @@ func (env *Env) readOutCoverage(p *prog.Prog) (info []CallInfo, err0 error) {
}
for i := uint32(0); i < ncmd; i++ {
var callIndex, callNum, errno, faultInjected, signalSize, coverSize, compsSize uint32
- if !readOut(&callIndex) || !readOut(&callNum) || !readOut(&errno) || !readOut(&faultInjected) || !readOut(&signalSize) || !readOut(&coverSize) || !readOut(&compsSize) {
+ if !readOut(&callIndex) || !readOut(&callNum) || !readOut(&errno) ||
+ !readOut(&faultInjected) || !readOut(&signalSize) ||
+ !readOut(&coverSize) || !readOut(&compsSize) {
err0 = fmt.Errorf("executor %v: failed to read output coverage", env.pid)
return
}
@@ -386,7 +389,8 @@ func (env *Env) readOutCoverage(p *prog.Prog) (info []CallInfo, err0 error) {
}
c := p.Calls[callIndex]
if num := c.Meta.ID; uint32(num) != callNum {
- err0 = fmt.Errorf("executor %v: failed to read output coverage: record %v call %v: expect syscall %v, got %v, executed %v (cov: %v)",
+ err0 = fmt.Errorf("executor %v: failed to read output coverage:"+
+ " record %v call %v: expect syscall %v, got %v, executed %v (cov: %v)",
env.pid, i, callIndex, num, callNum, ncmd, dumpCov())
return
}