I suggest to move SeparateProcessGroup() to _runlinux.go and move corresponding test to the new file with a build-flag.
Fix #80
Also there's a new mechanism to process every exec.Cmd before it runs.
Client code may differ by platform using build tags. I think that these mutations will be the same within an app. So global package-level setting is quite good and fast fix. Usage example:
Move platform-specific code under build tags; fix corresponding tests
The example
SeparateProcessGroup()
of brand newCompilationOptions
is in the wrong place, because it uses platform-specific code:I suggest to move
SeparateProcessGroup()
to _runlinux.go and move corresponding test to the new file with a build-flag.Fix #80
Also there's a new mechanism to process every
exec.Cmd
before it runs.Client code may differ by platform using build tags. I think that these mutations will be the same within an app. So global package-level setting is quite good and fast fix. Usage example:
or setpgid for linux: