lkml.org 
[lkml]   [2006]   [Feb]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: + daemonize-detach-from-current-namespace.patch added to -mm tree
FromArjan van de Ven <>
DateMon, 20 Feb 2006 09:46:57 +0100
> diff -puN kernel/exit.c~daemonize-detach-from-current-namespace kernel/exit.c
> --- devel/kernel/exit.c~daemonize-detach-from-current-namespace	2006-02-19 20:36:58.000000000 -0800
> +++ devel-akpm/kernel/exit.c	2006-02-19 20:36:58.000000000 -0800
> @@ -360,6 +360,9 @@ void daemonize(const char *name, ...)
>  	fs = init_task.fs;
>  	current->fs = fs;
>  	atomic_inc(&fs->count);
> +	exit_namespace(current);
> +	current->namespace = init_task.namespace;
> +	get_namespace(current->namespace);
>   	exit_files(current);

not that it'll matter much here, but this is normally the wrong order of
refcounting ;) First take the count, then start using it ;)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-20 09:49    [from the cache]
©2003-2008