https://github.com/torvalds/linux
Revision 7f14daa19ea36b200d237ad3ac5826ae25360461 authored by Petr Vandrovec on 13 October 2006, 02:13:16 UTC, committed by Linus Torvalds on 13 October 2006, 15:13:34 UTC
The file based core dump code was broken by pipe changes - a relative
llseek returns the absolute file position on success, not the relative
one, so dump_seek() always failed when invoked with non-zero current
position.

Only success/failure can be tested with relative lseek, we have to trust
kernel that on success we've got right file offset.  With this fix in
place I have finally real core files instead of 1KB fragments...

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
[ Cleaned it up a bit while here - use SEEK_CUR instead of hardcoding 1 ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 12e36b2
History
Tip revision: 7f14daa19ea36b200d237ad3ac5826ae25360461 authored by Petr Vandrovec on 13 October 2006, 02:13:16 UTC
[PATCH] Get core dump code to work...
Tip revision: 7f14daa
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 542 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.2 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 73.2 KB
Makefile -rw-r--r-- 48.9 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top