Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83114
b: refs/heads/master
c: 9782995
h: refs/heads/master
v: v3
  • Loading branch information
Serge E. Hallyn authored and Linus Torvalds committed Feb 5, 2008
1 parent 5994e91 commit 77cd882
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 3b7391de67da515c91f48aa371de77cb6cc5c07e
refs/heads/master: 97829955ad291acec1d8b94e9911b3ceb1118bb1
2 changes: 1 addition & 1 deletion trunk/mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
* Superuser processes are usually more important, so we make it
* less likely that we kill those.
*/
if (__capable(p, CAP_SYS_ADMIN) || p->uid == 0 || p->euid == 0)
if (__capable(p, CAP_SYS_ADMIN) || __capable(p, CAP_SYS_RESOURCE))
points /= 4;

/*
Expand Down

0 comments on commit 77cd882

Please sign in to comment.