Files
packages/anda/docker/containerd/0001-Add-reaper-StartLocked.patch
T
lleyton a16b7bce95 chore: sync with Terra 39 (#877)
* chore: sync with Terra 39

* fix: update mock-configs path

* fix: use f38 specs for desktops

* chore: move more lomiri/unity specific packages (#880)

* Fix(ubuntu-sdk): update description & version (#878)

Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>

* fix: disable docs package (#887)

* sync more changes from f39

* add keyd fixes

---------

Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
Signed-off-by: lleyton <lleyton@fyralabs.com>
Co-authored-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
2024-01-13 17:40:35 -08:00

34 lines
1008 B
Diff

From 788f2f928c1d0099d3861553bf82e83169811a29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Tue, 1 Nov 2022 22:09:38 +0100
Subject: [PATCH] Add reaper StartLocked
---
sys/reaper/reaper_unix.go | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sys/reaper/reaper_unix.go b/sys/reaper/reaper_unix.go
index 6c4f13b90..a6d6a1e77 100644
--- a/sys/reaper/reaper_unix.go
+++ b/sys/reaper/reaper_unix.go
@@ -101,6 +101,16 @@ func (m *Monitor) Start(c *exec.Cmd) (chan runc.Exit, error) {
return ec, nil
}
+// StartLocked starts the command a registers the process with the reaper
+func (m *Monitor) StartLocked(c *exec.Cmd) (chan runc.Exit, error) {
+ ec := m.Subscribe()
+ if err := c.Start(); err != nil {
+ m.Unsubscribe(ec)
+ return nil, err
+ }
+ return ec, nil
+}
+
// Wait blocks until a process is signal as dead.
// User should rely on the value of the exit status to determine if the
// command was successful or not.
--
2.38.1