Skip to content

nspawn: make sure to send SIGTERM/SIGHUP to the main nspawn process i…#6167

Merged
keszybz merged 1 commit intosystemd:masterfrom
poettering:nspawn-stubinit-sigterm
Jun 23, 2017
Merged

nspawn: make sure to send SIGTERM/SIGHUP to the main nspawn process i…#6167
keszybz merged 1 commit intosystemd:masterfrom
poettering:nspawn-stubinit-sigterm

Conversation

@poettering
Copy link
Member

…f stubinit receives SIGRTMIN+3

This code already existed in some form, however commented. Remove the
comments, as this was most likely simply a forgotten commenting for
debugging purposes.

This also extends the logic a bit, by sending SIGHUP right after the
SIGTERM, so that shells will also terminate, when PID 1 gets a
SIGRTMIN+3.

Fixes: #5711

…f stubinit receives SIGRTMIN+3

This code already existed in some form, however commented. Remove the
comments, as this was most likely simply a forgotten commenting for
debugging purposes.

This also extends the logic a bit, by sending SIGHUP right after the
SIGTERM, so that shells will also terminate, when PID 1 gets a
SIGRTMIN+3.

Fixes: systemd#5711
@keszybz keszybz merged commit a462478 into systemd:master Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants