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.