[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 15/19: startup: Make the kernel a child of startup.
From: |
Samuel Thibault |
Subject: |
[hurd] 15/19: startup: Make the kernel a child of startup. |
Date: |
Wed, 10 Aug 2016 00:05:50 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 1912e6a69419d4448795ae1451c7b7c57ac16a52
Author: Justus Winter <address@hidden>
Date: Mon Aug 8 18:01:32 2016 +0200
startup: Make the kernel a child of startup.
* startup/startup.c (frob_kernel_process): Make the kernel a child of
startup, improve error reporting.
---
startup/startup.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/startup/startup.c b/startup/startup.c
index 3098454..49ba9ce 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -900,6 +900,12 @@ frob_kernel_process (void)
error (0, err, "cannot get kernel task port");
return;
}
+
+ /* Make the kernel our child. */
+ err = proc_child (procserver, task);
+ if (err)
+ error (0, err, "cannot make the kernel our child");
+
err = proc_task2proc (procserver, task, &proc);
if (err)
{
@@ -910,7 +916,9 @@ frob_kernel_process (void)
/* Mark the kernel task as an essential task so that we or the proc server
never want to task_terminate it. */
- proc_mark_important (proc);
+ err = proc_mark_important (proc);
+ if (err)
+ error (0, err, "cannot mark the kernel as important");
err = record_essential_task ("kernel", task);
assert_perror (err);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 12/19: pfinet: fix memory leak, (continued)
- [hurd] 12/19: pfinet: fix memory leak, Samuel Thibault, 2016/08/09
- [hurd] 13/19: proc: Fix references to the startup server., Samuel Thibault, 2016/08/09
- [hurd] 02/19: ext2fs: fix pager use-after-free, Samuel Thibault, 2016/08/09
- [hurd] 01/19: libdiskfs: fix error handling, Samuel Thibault, 2016/08/09
- [hurd] 07/19: Fix pipe_send() with no data, Samuel Thibault, 2016/08/09
- [hurd] 11/19: trans/crash: fix blunder, Samuel Thibault, 2016/08/09
- [hurd] 16/19: proc: Fix permission check., Samuel Thibault, 2016/08/09
- [hurd] 14/19: libpager: provide 'pager_create_alloc', Samuel Thibault, 2016/08/09
- [hurd] 03/19: Make <sys/procfs.h> self-contained again, Samuel Thibault, 2016/08/09
- [hurd] 04/19: Revert part of "fix compiler warnings in hurd/exec", Samuel Thibault, 2016/08/09
- [hurd] 15/19: startup: Make the kernel a child of startup.,
Samuel Thibault <=
- [hurd] 17/19: sutils: New utility 'bless'., Samuel Thibault, 2016/08/09
- [hurd] 10/19: Do not make io_select return errors on unsupported READ/WRITE mode, Samuel Thibault, 2016/08/09
- [hurd] 08/19: nfs: appease the stricter reference counting mechanism, Samuel Thibault, 2016/08/09