Skip to content
quarry Artifact [eabfd2e38d]
Login

Artifact [eabfd2e38d]

Artifact eabfd2e38d8709630ba8e8d855ae1fbd253b4ec921adb97435453618adeebda0:


//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
}