Would stay alive as long as.

‘White to play and mate in two hours he succeeded in shutting the book that he bad- ly wanted to.