bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH hurd 4/5] hurd: add `proc_make_task_namespace'


From: Samuel Thibault
Subject: Re: [PATCH hurd 4/5] hurd: add `proc_make_task_namespace'
Date: Wed, 10 Dec 2014 01:45:52 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Thu 13 Nov 2014 13:26:18 +0100, a écrit :
> Add a new RPC to the process protocol to create task namespaces.
> These can be used by an unprivileged process to claims the
> responsibility to manage all tasks in this namespace.  Any task
> created in this namespace will automatically be declared a child of
> the root process, and a `mach_notify_new_task' message is sent to a
> given port.  If the root process dies, the proc server will terminate
> all tasks in the namespace.

Ack.

> * hurd/process.defs (proc_make_task_namespace): New RPC.
> ---
>  hurd/process.defs | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/hurd/process.defs b/hurd/process.defs
> index 498faba..4ceb69e 100644
> --- a/hurd/process.defs
> +++ b/hurd/process.defs
> @@ -1,5 +1,5 @@
>  /* Definitions for process server interface
> -   Copyright (C) 1992,93,94,95,96,97,2001,2013 Free Software Foundation
> +   Copyright (C) 1992,93,94,95,96,97,2001,13,14 Free Software Foundation
>  
>  This file is part of the GNU Hurd.
>  
> @@ -404,3 +404,12 @@ routine proc_get_code (
>       process: process_t;
>       out start_code: vm_address_t;
>       out end_code: vm_address_t);
> +
> +/* Create a new task namespace.  PROCESS claims the responsibility to
> +   manage all tasks in this namespace.  Any task created in this
> +   namespace will automatically be declared a child of PROCESS, and a
> +   `mach_notify_new_task' message is sent to NOTIFY.  If PROCESS dies,
> +   the proc server will terminate all tasks in the namespace.  */
> +routine proc_make_task_namespace (
> +     process: process_t;
> +     notify: mach_port_send_t);
> -- 
> 2.1.1
> 

-- 
Samuel
"I don't know why, but first C programs tend to look a lot worse than
first programs in any other language (maybe except for fortran, but then
I suspect all fortran programs look like `firsts')"
(By Olaf Kirch)



reply via email to

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