mirror of
https://github.com/hanzo-git/runner.git
synced 2026-10-30 19:33:27 +00:00
Native runner: module github.com/hanzo-git/runner, wire proto github.com/hanzo-git/actions-proto-go, command git-runner, GIT_* env, git expr context, git_* task-context keys, ghcr.io/hanzoai/runner-ubuntu job images. Derived work — upstream attribution + MIT terms in NOTICE/LICENSE. Co-authored-by: Hanzo Dev <[email protected]>
15 lines
559 B
Go
15 lines
559 B
Go
// Copyright 2026 The Git Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package process
|
|
|
|
import "syscall"
|
|
|
|
// SysProcAttr returns the platform attributes used to start a process so that a
|
|
// Killer can later tear down its whole process tree. On Windows the process is
|
|
// placed in a new process group; the descendant tree is reclaimed via the Job
|
|
// Object set up by NewKiller.
|
|
func SysProcAttr(cmdLine string, tty bool) *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{CmdLine: cmdLine, CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP}
|
|
}
|