Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256863
b: refs/heads/master
c: 961c467
h: refs/heads/master
i:
  256861: 98e9c66
  256859: 6dd0513
  256855: c191627
  256847: 069d60f
  256831: 7867b8a
v: v3
  • Loading branch information
Oleg Nesterov committed Jul 17, 2011
1 parent 01a3844 commit 7d9d9c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: bb188d7e64deb0e9cf13a99f44ae0065de5352d6
refs/heads/master: 961c4675c75112717705fa5c0c53cb9664051479
12 changes: 5 additions & 7 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,16 @@ int is_current_pgrp_orphaned(void)
return retval;
}

static int has_stopped_jobs(struct pid *pgrp)
static bool has_stopped_jobs(struct pid *pgrp)
{
int retval = 0;
struct task_struct *p;

do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
if (!task_is_stopped(p))
continue;
retval = 1;
break;
if (p->signal->flags & SIGNAL_STOP_STOPPED)
return true;
} while_each_pid_task(pgrp, PIDTYPE_PGID, p);
return retval;

return false;
}

/*
Expand Down

0 comments on commit 7d9d9c2

Please sign in to comment.