aboutsummaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-03 20:31:03 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-03 20:31:03 +0100
commitc36e6bbe9366b30c5b072997698e4e78947b446f (patch)
tree54c731b61358bd7c06c1f029920e220dcd70dc23 /startup
parent669b941256fbf4c5acaf4d7a2f3ce07c66e0496c (diff)
downloadhurd-c36e6bbe9366b30c5b072997698e4e78947b446f.tar.gz
hurd-c36e6bbe9366b30c5b072997698e4e78947b446f.tar.bz2
hurd-c36e6bbe9366b30c5b072997698e4e78947b446f.zip
startup: Make essential tasks essential to mach
Whenever a Hurd essential task crashes, startup just reboots the system since there's not much that can be done at that point. When we have a kernel debugger, however, we could at least get crashing information, so let's make Hurd's startup tell the kernel which tasks are essential, so it can trigger the debugger whenever they crash.
Diffstat (limited to 'startup')
-rw-r--r--startup/startup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/startup/startup.c b/startup/startup.c
index 1e3a65fb..e8c76d80 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -1493,6 +1493,8 @@ S_startup_essential_task (mach_port_t server,
if (fail)
return fail;
+ task_set_essential (task, TRUE);
+
/* Always deallocate the extra reference this message carries. */
if (MACH_PORT_VALID (credential))
mach_port_deallocate (mach_task_self (), credential);