Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

agent: send SIGKILL instead of SIGTERM to container init process #533

Closed

Conversation

egernst
Copy link
Member

@egernst egernst commented Apr 16, 2019

Backported:

c624f63 Merge pull request #526 from lifupan/stopfix
7fbd860 agent: send SIGKILL instead of SIGTERM to container init process

Not backported:

7720b93 Merge pull request #480 from jodh-intel/fix-user-initiated-shutdown
85e0942 docs: Explain shutdown behaviour with tracing
99d6118 docs: Define "VM" in tracing doc
353ec2d service: Fix user initiated shutdown with static tracing

34209ea Merge pull request #521 from awprice/local-storage-type
8847998 agent: Add support for local storage

bf5f5ab Merge pull request #529 from sboeuf/fix_exec_vndr
cb32d28 test: Fix mockContainer
3e12793 agent: Fix container creation
6e558f7 vendor: Update libcontainer vendoring

aa37186 Merge pull request #523 from teawater/static_build
8b34aaf make: Add build option STATIC=1 to statically link

801d792 Merge pull request #528 from teawater/lint
01b1cb2 travis: Use xenial
d815c97 lint: Update code to handle lint issues
828b417 ci: Update travis go version from 1.10 to 1.11

@egernst
Copy link
Member Author

egernst commented Apr 16, 2019

/test

@jcvenegas
Copy link
Member

/test

If container initProcess doesn't install any handler for SIGTERM,
it will ignore this signal, thus send it SIGKILL instead of SIGTERM
to terminate it.

Fixes:kata-containers#525

Signed-off-by: lifupan <lifupan@gmail.com>
@jcvenegas
Copy link
Member

The added unit test failed, not sure if need additional changes.

=== RUN   TestIsSignalHandled
--- FAIL: TestIsSignalHandled (0.00s)
	Error Trace:	grpc_test.go:853
	Error:      	Should be false
	Test:       	TestIsSignalHandled
	Error Trace:	grpc_test.go:858
	Error:      	Should be true
	Test:       	TestIsSignalHandled

@jcvenegas
Copy link
Member

probably needs kata-containers/runtime#1494

@egernst egernst closed this Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants