aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 7701470ea1b8..40cd099cfc1b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1518,14 +1518,6 @@ static void check_unshare_flags(unsigned long *flags_ptr)
1518 *flags_ptr |= CLONE_SIGHAND; 1518 *flags_ptr |= CLONE_SIGHAND;
1519 1519
1520 /* 1520 /*
1521 * If unsharing signal handlers and the task was created
1522 * using CLONE_THREAD, then must unshare the thread
1523 */
1524 if ((*flags_ptr & CLONE_SIGHAND) &&
1525 (atomic_read(&current->signal->count) > 1))
1526 *flags_ptr |= CLONE_THREAD;
1527
1528 /*
1529 * If unsharing namespace, must also unshare filesystem information. 1521 * If unsharing namespace, must also unshare filesystem information.
1530 */ 1522 */
1531 if (*flags_ptr & CLONE_NEWNS) 1523 if (*flags_ptr & CLONE_NEWNS)