diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-26 17:33:05 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-28 13:14:29 +0100 |
commit | 2c9422595f41635e2f4f7ef1afb7eece9001feae (patch) | |
tree | 11cfab857181be05d9bd6ecf002f1a0c5488ae22 /proc/mgt.c | |
parent | 6d1f5176f257ab9a9b47ae65b528c9ab79db5b31 (diff) | |
download | hurd-2c9422595f41635e2f4f7ef1afb7eece9001feae.tar.gz hurd-2c9422595f41635e2f4f7ef1afb7eece9001feae.tar.bz2 hurd-2c9422595f41635e2f4f7ef1afb7eece9001feae.zip |
proc: store the privileged host port in _hurd_host_priv
Store the privileged host port in _hurd_host_priv like it is done in
the root filesystem. This fixes the thread priority adjustment in the
proc server. Prior to this fix, a warning message "unable to adjust
libports thread priority" sometimes appeared early in the boot
process.
* proc/host.c (S_proc_getprivports): Adapt accordingly.
(S_proc_register_version): Likewise.
* proc/mgt.c (add_tasks): Likewise.
* proc/msg.c (tickle_init): Likewise.
* proc/main.c (main): Store the privileged host port in _hurd_host_priv.
* proc/proc.h: Remove unused variable master_host_port.
fixup_store_priv_port
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -828,7 +828,7 @@ add_tasks (task_t task) if (!foundp) { - host_processor_set_priv (master_host_port, psets[i], &psetpriv); + host_processor_set_priv (_hurd_host_priv, psets[i], &psetpriv); processor_set_tasks (psetpriv, &tasks, &ntasks); for (j = 0; j < ntasks; j++) { |