fix: close pipe file handles (#2606)
This commit is contained in:
1 parent
190e305ea1
commit
583e78b727
1 file changed
+2
-1
@@ -614,7 +614,8 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
|||||||
// read before calling [exec.Cmd.Wait], however in this case Cmd.Wait should
|
// read before calling [exec.Cmd.Wait], however in this case Cmd.Wait should
|
||||||
// only wait for the command to finish executing regardless of whether the
|
// only wait for the command to finish executing regardless of whether the
|
||||||
// output has been fully read or not.
|
// output has been fully read or not.
|
||||||
inReader, inWriter, err := os.Pipe()
|
var err error
|
||||||
|
inReader, inWriter, err = os.Pipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("creating input pipe: %s", err)
|
log.Printf("creating input pipe: %s", err)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user