chore: fix comments

extended-job-api
TorchedSammy 2022-05-21 19:58:41 -04:00
parent 3bcff3e350
commit f43ff7d03c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

4
job.go
View File

@ -45,12 +45,12 @@ func (j *job) start() error {
} }
// bgProcAttr is defined in execfile_<os>.go, it holds a procattr struct // bgProcAttr is defined in execfile_<os>.go, it holds a procattr struct
// in a simple explanation, it makes signals from hilbish (sigint) // in a simple explanation, it makes signals from hilbish (sigint)
// not go to it // not go to it (child process)
j.handle.SysProcAttr = bgProcAttr j.handle.SysProcAttr = bgProcAttr
// reset output buffers // reset output buffers
j.stdout.Reset() j.stdout.Reset()
j.stderr.Reset() j.stderr.Reset()
// make cmd write to both standard output and output buffers for lua ccess // make cmd write to both standard output and output buffers for lua access
j.handle.Stdout = io.MultiWriter(j.cmdout, j.stdout) j.handle.Stdout = io.MultiWriter(j.cmdout, j.stdout)
j.handle.Stderr = io.MultiWriter(j.cmderr, j.stderr) j.handle.Stderr = io.MultiWriter(j.cmderr, j.stderr)