//go:build !unix
package runner
import (
"errors"
"os/exec"
"time"
)
func endOwn() error {
return errors.New("job-reclaim runs only on Unix, where --job-users does")
}
// become has no counterpart off Unix: job users are Unix accounts
// reached through sudo, and --job-users is refused before a job runs.
func become(string, []string, []string) error {
return errors.New("job-env runs only on Unix, where --job-users does")
}
// stopTogether off Unix kills the command itself, and stops waiting on
// its output a little after.
func stopTogether(cmd *exec.Cmd) {
cmd.WaitDelay = 5 * time.Second
}