You can write signal handler to save current position of file
pointer when your process catch kill signal;
I don't think you can deal with core dump easily. This is a
transaction issue, I think.
This post has been archived. It cannot be replied.