Skip to content

unshare: add --forward-signals option

Kiran Rangoon util-linux 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyApplied
  2. v24 patches 0 repliesSuperseded
  3. v15 patches 1 replySuperseded

Changes in v3 from the cover letter

- Add bash completion for --forward-signals
- Add usage text in help output
- Fix code indentation to match project style
- Improve test synchronization (replace fixed sleep with adaptive polling)
- Add namespace capability checks in tests to prevent CI failures

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4unshare: add --forward-signals option to argument parserbash-completion/unshare sys-utils/unshare.c+9 -10 replies
2/4unshare: implement signal forwarding when --forward-signals is usedsys-utils/unshare.c+51 -40 replies
3/4unshare: document --forward-signals in man pagesys-utils/unshare.1.adoc+13 -00 replies
4/4tests: add tests for unshare --forward-signalstests/expected/unshare/forward-signals tests/expected/unshare/forward-signals-kill-child tests/ts/unshare/forward-signals +1 more+149 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/4] unshare: add --forward-signals option

This series adds a new --forward-signals option to unshare that forwards SIGTERM and SIGINT from the parent process to the child. This allows child processes to handle graceful shutdown during system reboot or service manager termination.

Changes in V3:
- Add bash completion for --forward-signals
- Add usage text in help output
- Fix code indentation to match project style
- Improve test synchronization (replace fixed sleep with adaptive polling)
- Add namespace capability checks in tests to prevent CI failures

Kiran Rangoon (4):
unshare: add --forward-signals option to argument parser
unshare: implement signal forwarding when --forward-signals is used
unshare: document --forward-signals in man page
tests: add tests for unshare --forward-signals

 bash-completion/unshare                       |  1 +
 sys-utils/unshare.1.adoc                      | 13 ++++
 sys-utils/unshare.c                           | 64 ++++++++++++++--
 tests/expected/unshare/forward-signals        |  1 +
 .../unshare/forward-signals-kill-child        |  1 +
 tests/ts/unshare/forward-signals              | 73 ++++++++++++++++++
 tests/ts/unshare/forward-signals-kill-child   | 74 +++++++++++++++++++
 7 files changed, 222 insertions(+), 5 deletions(-)
 create mode 100644 tests/expected/unshare/forward-signals
 create mode 100644 tests/expected/unshare/forward-signals-kill-child
 create mode 100755 tests/ts/unshare/forward-signals
 create mode 100755 tests/ts/unshare/forward-signals-kill-child
Signature · 1 line
2.47.3