Skip to content
quarry Artifact [8f38841f7b]
Login

Artifact [8f38841f7b]

Artifact 8f38841f7b1142f6e19c4f8cef9fe8f1a6d639f7095ff728410728c9641d0c74:


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

// pidAlive cannot tell off Unix, so another runner's dirs are kept.
func pidAlive(int) bool { return true }