15 lines · 504 B · Go
RawDownload
// Copyright 2022 The Gitea Authors. All rights reserved.// SPDX-License-Identifier: MIT package process import (	"os/exec"	"syscall") // SetSysProcAttribute sets the common SysProcAttrs for commandsfunc SetSysProcAttribute(cmd *exec.Cmd) {	// When Gitea runs SubProcessA -> SubProcessB and SubProcessA gets killed by context timeout, use setpgid to make sure the sub processes can be reaped instead of leaving defunct(zombie) processes.	cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t