patch-2.0.1 linux/fs/pipe.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Jul 2 19:08:42 1996
- Orig file:
v2.0.0/linux/fs/pipe.c
- Orig date:
Sun May 5 08:52:03 1996
diff -u --recursive --new-file v2.0.0/linux/fs/pipe.c linux/fs/pipe.c
@@ -67,8 +67,10 @@
}
PIPE_LOCK(*inode)--;
wake_up_interruptible(&PIPE_WAIT(*inode));
- if (read)
+ if (read) {
+ inode->i_atime = CURRENT_TIME;
return read;
+ }
if (PIPE_WRITERS(*inode))
return -EAGAIN;
return 0;
@@ -118,6 +120,7 @@
wake_up_interruptible(&PIPE_WAIT(*inode));
free = 1;
}
+ inode->i_ctime = inode->i_mtime = CURRENT_TIME;
return written;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov