Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210552
b: refs/heads/master
c: 9aea5a6
h: refs/heads/master
v: v3
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Sep 10, 2010
1 parent 0d57d2a commit 9ca4a2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7993bc1f4663c0db67bb8f0d98e6678145b387cd
refs/heads/master: 9aea5a65aa7a1af9a4236dfaeb0088f1624f9919
7 changes: 7 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ static int count(const char __user * const __user * argv, int max)
argv++;
if (i++ >= max)
return -E2BIG;

if (fatal_signal_pending(current))
return -ERESTARTNOHAND;
cond_resched();
}
}
Expand Down Expand Up @@ -419,6 +422,10 @@ static int copy_strings(int argc, const char __user *const __user *argv,
while (len > 0) {
int offset, bytes_to_copy;

if (fatal_signal_pending(current)) {
ret = -ERESTARTNOHAND;
goto out;
}
cond_resched();

offset = pos % PAGE_SIZE;
Expand Down

0 comments on commit 9ca4a2d

Please sign in to comment.