diff options
author | Adrian Bunk <bunk@r063144.stusta.swh.mhn.de> | 2006-03-20 12:30:36 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@r063144.stusta.swh.mhn.de> | 2006-03-20 12:30:36 -0500 |
commit | 0f76ee451484d02c7405d92e7bceb39b415abb01 (patch) | |
tree | 9722f84281f786ba48971dde057f5171a49969e4 /kernel/exit.c | |
parent | 01d206a7c1167639f6ca6dac22140fbdca017558 (diff) | |
parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) |
Merge with git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 93cee3671332..531aadca5530 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -360,6 +360,9 @@ void daemonize(const char *name, ...) | |||
360 | fs = init_task.fs; | 360 | fs = init_task.fs; |
361 | current->fs = fs; | 361 | current->fs = fs; |
362 | atomic_inc(&fs->count); | 362 | atomic_inc(&fs->count); |
363 | exit_namespace(current); | ||
364 | current->namespace = init_task.namespace; | ||
365 | get_namespace(current->namespace); | ||
363 | exit_files(current); | 366 | exit_files(current); |
364 | current->files = init_task.files; | 367 | current->files = init_task.files; |
365 | atomic_inc(¤t->files->count); | 368 | atomic_inc(¤t->files->count); |