aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index a7799d8a6404..28a44a2612dc 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -430,7 +430,7 @@ void daemonize(const char *name, ...)
430 * We don't want to have TIF_FREEZE set if the system-wide hibernation 430 * We don't want to have TIF_FREEZE set if the system-wide hibernation
431 * or suspend transition begins right now. 431 * or suspend transition begins right now.
432 */ 432 */
433 current->flags |= PF_NOFREEZE; 433 current->flags |= (PF_NOFREEZE | PF_KTHREAD);
434 434
435 if (current->nsproxy != &init_nsproxy) { 435 if (current->nsproxy != &init_nsproxy) {
436 get_nsproxy(&init_nsproxy); 436 get_nsproxy(&init_nsproxy);