Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361878
b: refs/heads/master
c: 751c644
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed Mar 26, 2013
1 parent 7555012 commit e95c15e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92f28d973cce45ef5823209aab3138eb45d8b349
refs/heads/master: 751c644b95bb48aaa8825f0c66abbcc184d92051
3 changes: 2 additions & 1 deletion trunk/kernel/pid_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void zap_pid_ns_processes(struct pid_namespace *pid_ns)
int nr;
int rc;
struct task_struct *task, *me = current;
int init_pids = thread_group_leader(me) ? 1 : 2;

/* Don't allow any more processes into the pid namespace */
disable_pid_allocation(pid_ns);
Expand Down Expand Up @@ -230,7 +231,7 @@ void zap_pid_ns_processes(struct pid_namespace *pid_ns)
*/
for (;;) {
set_current_state(TASK_UNINTERRUPTIBLE);
if (pid_ns->nr_hashed == 1)
if (pid_ns->nr_hashed == init_pids)
break;
schedule();
}
Expand Down

0 comments on commit e95c15e

Please sign in to comment.