Skip to content
quarry Artifact [6b3cf5be83]
Login

Artifact [6b3cf5be83]

Artifact 6b3cf5be8347f39565ec522572a8f1553cf95370f92b15727675e96fb113bba3:


//go:build !unix

package runner

import (
	"errors"
	"os/exec"
	"time"
)

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