bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] startup: Mark essential tasks as our children


From: Damien Zammit
Subject: [PATCH 1/2] startup: Mark essential tasks as our children
Date: Sat, 5 Jun 2021 20:10:47 +1000

---
 startup/startup.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/startup/startup.c b/startup/startup.c
index 9faeb462..78d69103 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -368,6 +368,10 @@ record_essential_task (const char *name, task_t task)
   /* Dead-name notification on the task port will tell us when it dies.  */
   request_dead_name (task);
 
+  /* Make task a child of startup */
+  if (task != mach_task_self () && task != proctask)
+    proc_child (procserver, task);
+
 #if 0
   /* Taking over the exception port will give us a better chance
      if the task tries to get wedged on a fault.  */
-- 
2.31.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]