Stages of restoring

From CRIU
Revision as of 12:23, 5 December 2012 by Avagin (talk | contribs) (Created page with "A process of restoring has a few global synchronization points: * CR_STATE_FORKING - Create tasks and restore group leaders. * CR_STATE_RESTORE_PGID - Restore group IDs. Group...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A process of restoring has a few global synchronization points:

  • CR_STATE_FORKING - Create tasks and restore group leaders.
  • CR_STATE_RESTORE_PGID - Restore group IDs. Group leaders should exist in this moment and all helpers should be alive.
  • CR_STATE_RESTORE - Wait helpers and restore a most part of resources. If anyone segfauls, its parent gets SIGCHLD and notify crtools about that.
  • CR_STATE_RESTORE_SIGCHLD - Restore SIGCHLD handlers
  • CR_STATE_COMPLETE - All handlers were restored, origin processes can be resumed.