Static-check fixes from @lespea #1657, batch 5/n (#1707)

* Static-check fixes from @lespea #1657, batch 2/n

* Static-check fixes from @lespea #1657, batch 3/n

* Static-check fixes from @lespea #1657, batch 4/n

* Static-check fixes from @lespea #1657, batch 5/n
This commit is contained in:
John Kerl 2024-10-27 12:05:48 -04:00 committed by GitHub
parent 8c791f5466
commit 02bd5344b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 25 deletions

View file

@ -21,6 +21,9 @@ import (
func OpenOutboundHalfPipe(commandString string) (*os.File, error) {
readPipe, writePipe, err := os.Pipe()
if err != nil {
return nil, err
}
var procAttr os.ProcAttr
procAttr.Files = []*os.File{
@ -56,6 +59,9 @@ func OpenOutboundHalfPipe(commandString string) (*os.File, error) {
func OpenInboundHalfPipe(commandString string) (*os.File, error) {
readPipe, writePipe, err := os.Pipe()
if err != nil {
return nil, err
}
var procAttr os.ProcAttr
procAttr.Files = []*os.File{