Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
cfa9cef2
Commit
cfa9cef2
authored
Aug 19, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer/plugin: Set killed in the kill clients method
parent
f68e0008
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
packer/plugin/client.go
packer/plugin/client.go
+3
-0
signal.go
signal.go
+0
-1
No files found.
packer/plugin/client.go
View file @
cfa9cef2
...
...
@@ -73,6 +73,9 @@ type ClientConfig struct {
//
// This must only be called _once_.
func
CleanupClients
()
{
// Set the killed to true so that we don't get unexpected panics
Killed
=
true
// Kill all the managed clients in parallel and use a WaitGroup
// to wait for them all to finish up.
var
wg
sync
.
WaitGroup
...
...
signal.go
View file @
cfa9cef2
...
...
@@ -28,7 +28,6 @@ func setupSignalHandlers(env packer.Environment) {
// Force kill all the plugins, but mark that we're killing them
// first so that we don't get panics everywhere.
plugin
.
Killed
=
true
plugin
.
CleanupClients
()
os
.
Exit
(
1
)
}()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment