views:

54

answers:

1

My task is to checkpoint and restart X11 applications.

Therefore I use the BLCR (Berkeley Lab Checkpoint/Restart (BLCR)) tool. Due to the fact that BLCR is not able (without modifications) to reinitiate the connection to the X-Server, I used an interposition library to log all Xlib function calls with their parameters to a text file.

Now I want to be able to re-use this logged function calls. Is there any better way instead of saving them to a text file and parsing/interpreting them during the restart procedure?

Actually the application which is checkpointed should redo the calls which were logged, but this seems to be not as easy as it has sounded first.

A: 

I've not tested this, but I think you might be able to solve this one by spawning an xmove child process and making sure this gets stored in the checkpoints. Your application would talk to xmove instead of the XServer directly and every time you restore from checkpoint you would "move" to the current xserver again.

awoodland