[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH gnumach 1/2] kern: provide notifications about new tasks
From: |
Samuel Thibault |
Subject: |
Re: [PATCH gnumach 1/2] kern: provide notifications about new tasks |
Date: |
Fri, 21 Nov 2014 01:50:15 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 12 Nov 2014 16:49:08 +0100, a écrit :
> +kern_return_t
> +register_new_task_notification(
> + const host_t host,
> + ipc_port_t notification)
> +{
> + if (host == HOST_NULL)
> + return KERN_INVALID_HOST;
> +
> + if (new_task_notification != NULL)
> + return KERN_NO_ACCESS;
> +
> + new_task_notification = notification;
> + return KERN_SUCCESS;
> +}
Mmm, doesn't this need some additional reference on the notification
port? Of course, proc is not supposed to die, but better be safe than
sorry :)
Samuel
- Unprivileged Subhurds, Justus Winter, 2014/11/12
- [PATCH gnumach 2/2] include: add X_IMPORTS to ipc definitions, Justus Winter, 2014/11/12
- [PATCH gnumach 1/2] kern: provide notifications about new tasks, Justus Winter, 2014/11/12
- Re: [PATCH gnumach 1/2] kern: provide notifications about new tasks,
Samuel Thibault <=
- Re: Unprivileged Subhurds, Richard Braun, 2014/11/13
- Re: Unprivileged Subhurds, Justus Winter, 2014/11/13
- Re: Unprivileged Subhurds, Richard Braun, 2014/11/13
- Re: Unprivileged Subhurds, Justus Winter, 2014/11/13
- [PATCH hurd 1/5] Makeconf: handle the task_notify protocol, Justus Winter, 2014/11/13
- [PATCH hurd 2/5] proc: register for new task notifications, Justus Winter, 2014/11/13
- [PATCH hurd 3/5] proc: implement `proc_make_task_namespace', Justus Winter, 2014/11/13
- [PATCH hurd 4/5] hurd: add `proc_make_task_namespace', Justus Winter, 2014/11/13
- [PATCH hurd 5/5] proc: fix build, Justus Winter, 2014/11/13
- Re: Unprivileged Subhurds, Richard Braun, 2014/11/13