]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Get core dump code to work...
authorPetr Vandrovec <petr@vandrovec.name>
Fri, 13 Oct 2006 02:13:16 +0000 (04:13 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 13 Oct 2006 15:13:34 +0000 (08:13 -0700)
commitf0be8b4898d2f99ddd3fc486dff700a267196d39
treea123fefbb13871de2bc30fff49a4418b48a38732
parent63b4e9e7dd8561181dab1acbf31e3be2d0552361
[PATCH] Get core dump code to work...

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>
fs/binfmt_elf.c