Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145570
b: refs/heads/master
c: 2b83868
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jun 10, 2009
1 parent d385dba commit 80a9794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 07a2039b8eb0af4ff464efd3dfd95de5c02648c6
refs/heads/master: 2b83868723d090078ac0e2120e06a1cc94dbaef0
5 changes: 2 additions & 3 deletions trunk/drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,8 @@ static ssize_t read_zero(struct file * file, char __user * buf,
written += chunk - unwritten;
if (unwritten)
break;
/* Consider changing this to just 'signal_pending()' with lots of testing */
if (fatal_signal_pending(current))
return written ? written : -EINTR;
if (signal_pending(current))
return written ? written : -ERESTARTSYS;
buf += chunk;
count -= chunk;
cond_resched();
Expand Down

0 comments on commit 80a9794

Please sign in to comment.