-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make exec agent not to use setsid for other than Linux OSes #9371
Conversation
ci-test |
ci-test build report: |
ci-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for me.
Please fix file formatting before a merge.
// wrap command to be able to kill child processes see https://github.com/golang/go/issues/8854 | ||
cmd := exec.Command("setsid", shellInterpreter, "-c", newProcess.CommandLine) | ||
|
||
var cmd *exec.Cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like that formatting is wrong. Please execute
go fmt agents/go-agents/core/process/process.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks for suggestion
ci-build |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4507/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, merge with squash.
ci-test build report: |
What does this PR do?
Currently exec agent uses "setsid" launching new command. It does not work OOTB for other than Linux OS since there are no setsid installed by default. This PR improve it making it possible to launch exec agent on other than Linux systems not requiring to install additional software
What issues does this PR fix or reference?
n/a
Release Notes
n/a