Skip to content

Commit 8d1e1d5

Browse files
committed
Updated comments
1 parent 4391f08 commit 8d1e1d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

process.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func NewProcess(extraEnv []string, args ...string) (*Process, error) {
5656
}
5757
p.cmd.Env = append(os.Environ(), extraEnv...)
5858
tellCommandNotToSpawnShell(p.cmd) // windows specific
59-
tellCommandToStartOnNewProcessGroup(p.cmd) // linux specific
59+
tellCommandToStartOnNewProcessGroup(p.cmd) // linux and macosx specific
6060

6161
// This is required because some tools detects if the program is running
6262
// from terminal by looking at the stdin/out bindings.
@@ -67,6 +67,8 @@ func NewProcess(extraEnv []string, args ...string) (*Process, error) {
6767

6868
// TellCommandNotToSpawnShell avoids that the specified Cmd display a small
6969
// command prompt while runnning on Windows. It has no effects on other OS.
70+
//
71+
// Deprecated: TellCommandNotToSpawnShell is now always applied by default, there is no need to call it anymore.
7072
func (p *Process) TellCommandNotToSpawnShell() {
7173
tellCommandNotToSpawnShell(p.cmd)
7274
}

0 commit comments

Comments
 (0)