new helper: daemonize_descriptors()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / exit.c
index 20dfc76..0951133 100644 (file)
@@ -457,9 +457,7 @@ void daemonize(const char *name, ...)
        /* Become as one with the init task */
 
        daemonize_fs_struct();
-       exit_files(current);
-       current->files = init_task.files;
-       atomic_inc(&current->files->count);
+       daemonize_descriptors();
 
        reparent_to_kthreadd();
 }