pkg/ipc: Send output from syz-executor for non-Forkserver oses.

This change reuses the logic for sending the output back from
syz-executor to syz-fuzzer that forkserver oses use: reading it
periodically. This will be useful for debugging issues in Fuchsia that
does not support forkserver yet.
This commit is contained in:
Marco Vanotti 2019-08-29 14:23:46 -07:00 committed by Marco Vanotti
parent a60cb4cd84
commit 000d39a9b8

View File

@ -584,9 +584,6 @@ func makeCommand(pid int, bin []string, config *Config, inFile, outFile *os.File
if config.Flags&FlagDebug != 0 {
close(c.readDone)
cmd.Stderr = os.Stdout
} else if config.Flags&FlagUseForkServer == 0 {
close(c.readDone)
// TODO: read out output after execution failure.
} else {
cmd.Stderr = wp
go func(c *command) {