| commit | bdbb9c2baa94f72bf57ad1c13a2c2a5c3ff01858 | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@monogon.tech> | Wed Dec 18 15:14:02 2024 +0100 |
| committer | Jan Schär <jan@monogon.tech> | Mon Dec 23 10:13:43 2024 +0000 |
| tree | 97fad3e69df9ac10117a71846320dd8748caeecd | |
| parent | 742fde7cd4861bb16b4f0655b84f587510c1e84b [diff] |
m/node/core/time: use CommandContext Change-Id: Ie98b949facf3d26c819bdf56329f5837b8e3dac7 Reviewed-on: https://review.monogon.dev/c/monogon/+/3712 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/osbase/supervisor/supervisor_support.go b/osbase/supervisor/supervisor_support.go index 54d0fd3..c554c08 100644 --- a/osbase/supervisor/supervisor_support.go +++ b/osbase/supervisor/supervisor_support.go
@@ -63,6 +63,8 @@ // RunCommand will create a Runnable that starts a long-running command, whose // exit is determined to be a failure. +// cmd should be created with [exec.CommandContext] so that it will be killed +// when the context is canceled. func RunCommand(ctx context.Context, cmd *exec.Cmd, opts ...RunCommandOption) error { Signal(ctx, SignalHealthy)