Skip to content

stubinit doesn't send SIGTERM to the child process #5711

@phreaker0

Description

@phreaker0

Submission type

  • Bug report
  • Request for enhancement (RFE)

NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!

systemd version the issue has been seen with

232

NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!

Used distribution

debian stretch rc2

Expected behaviour you didn't see

stubinit should send SIGTERM to the child process if it receives SIGRTMIN+3

Unexpected behaviour you saw

stubinit process didn't send SIGTERM to the child process, it gets killed after a timeout

Steps to reproduce the problem

  • run any process in a systemd-nspawn started container as pid 2 (pid1 should be the stubinit) like this:

systemd-nspawn --user=root --kill-signal=SIGRTMIN+3 --as-pid2 -D /var/lib/machines/container/ /opt/print_signals.py

  • power off the container with machinectl:

machinectl poweroff container

No signal is sent to the process and it is killed after a timeout.

(i used a debian jessie system for the container but this shouldn't matter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions