1. 01 Jul, 2014 3 commits
    • Pavel Emelyanov's avatar
      criu: Restore tasks as siblings in swrk · 84eb0a19
      Pavel Emelyanov authored
      Andrey validly pointed out, that restoring pdeath_sig is not
      compatible with criu_restore_child() call -- after criu restore
      children, it will exit and fire the pdeath_sig into restored
      tree root, potentially killing it.
      
      The fix for that could be -- when started in swrk more, criu can
      restore tree not as children tasks, but as siblings, using the
      CLONE_PARENT flag when fork()-ing the root task.
      
      With this we should also take care about errors handing -- right
      now criu catches the SIGCHILD from dying children tasks, and
      since we plan to create them be children of the criu parent (the
      library caller) we will not be able to catch them. To do so we
      SEIZE the root task in advance thus causing all SIGCHLD-s go to
      criu, not to its parent.
      
      Having this done we no longer need the SUBREAPER trick in the
      library call -- tasks get restored right as callers kids :)
      
      Some thoughts for future -- using this trick we can finally make
      "natural" restoration of shell jobs. I.e. -- make criu restore
      some subtree right under bash, w/o leaving itself as intermediate
      task and w/o re-parenting the subtree to init after restore.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Acked-by: 's avatarAndrey Vagin <avagin@parallels.com>
      84eb0a19
    • Pavel Emelyanov's avatar
    • Pavel Emelyanov's avatar
      criu: Dump and restore pdeath_sig value · 5e9c57a1
      Pavel Emelyanov authored
      The implementation is pretty straightforward. When dumping per-thread
      misc data with parasite, collect one, then write in thread_core_info.
      
      On restore wait for creds restore and put the value back (some creds
      changes drop it to zero).
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
      5e9c57a1
  2. 27 Jun, 2014 21 commits
  3. 26 Jun, 2014 2 commits
  4. 25 Jun, 2014 11 commits
  5. 24 Jun, 2014 3 commits