Skip to content
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

Simplify usage of os/exec #4437

Merged
merged 1 commit into from
Feb 17, 2015
Merged

Simplify usage of os/exec #4437

merged 1 commit into from
Feb 17, 2015

Conversation

filbranden
Copy link
Contributor

For now, keep the finishRunning() wrapper but use a straight cmd.Run() call instead of the convoluted goroutine trying to catch signals.

It turns out that Unix process group handling is enough to interrupt pending processes when stopping the run with something like a Ctrl+C which should be enough.

Tested:

  • Full e2e run with hack/e2e-test.sh, two tests failed but looks like they've been failing before this change.
  • Started a hack/e2e.go -v -build and interrupted it with Ctrl+C, confirmed that build-release.sh was killed in the process.

@satnam6502 @zmerlynn

For now, keep the finishRunning() wrapper but use a straight cmd.Run()
call instead of the convoluted goroutine trying to catch signals.

It turns out that Unix process group handling is enough to interrupt
pending processes when stopping the run with something like a Ctrl+C
which should be enough.

Tested:
- Full e2e run with hack/e2e-test.sh, two tests failed but looks like
  they've been failing before this change.
- Started a hack/e2e.go -v -build and interrupted it with Ctrl+C,
  confirmed that build-release.sh was killed in the process.
@satnam6502 satnam6502 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 15, 2015
bgrant0607 added a commit that referenced this pull request Feb 17, 2015
@bgrant0607 bgrant0607 merged commit f3ec56b into kubernetes:master Feb 17, 2015
@filbranden filbranden deleted the hack_e2e_simplify_cmd_exec branch February 17, 2015 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants