patch-2.1.57 linux/fs/proc/mem.c
Next file: linux/fs/readdir.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Sep 20 14:51:55 1997
- Orig file:
v2.1.56/linux/fs/proc/mem.c
- Orig date:
Tue Sep 23 16:48:49 1997
diff -u --recursive --new-file v2.1.56/linux/fs/proc/mem.c linux/fs/proc/mem.c
@@ -91,7 +91,7 @@
return count;
tmp = buf;
while (count > 0) {
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
break;
page_dir = pgd_offset(tsk->mm,addr);
if (pgd_none(*page_dir))
@@ -145,7 +145,7 @@
return -ESRCH;
tmp = buf;
while (count > 0) {
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
break;
page_dir = pgd_offset(tsk,addr);
if (pgd_none(*page_dir))
@@ -180,7 +180,7 @@
file->f_pos = addr;
if (tmp != buf)
return tmp-buf;
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -ERESTARTSYS;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov