1. 10 Aug, 2015 3 commits
    • Andrey Vagin's avatar
      dump: use freezer cgroup to seize processes (v4) · 8ea02038
      Andrey Vagin authored
      Without using a freezer cgroup, we need to do a few iterations to catch
      all tasks, because a new tasks can be born. If new tasks appear faster
      than criu collects them, criu fails. The freezer cgroup allows to
      solve this problem.
      
      We freeze the freezer group, then attaches to tasks with ptrace and thaw
      the freezer cgroup. We suppose that all tasks which are going to be
      dumped in a specified freezer group.
      
      v2: fix comments from Christopher
      Reviewed-by: 's avatarChristopher Covington <cov@codeaurora.org>
      
      v3: refactor task_seize
      
      v4: fix comments from Pavel
      
      Cc: Christopher Covington <cov@codeaurora.org>
      Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      8ea02038
    • Andrew Vagin's avatar
      seize: set cr_errno in collect_pstree · 69b093ad
      Andrew Vagin authored
      Before cr_errno was called from open_pid_proc(), but
      now it isn't called if a root task doesn't exist.
      
      Reported-by: Mr Jenkins
      Fixes: b9b0730c ("ptrace: split task_seize into seize_catch_task and seize_wait_task")
      Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      69b093ad
    • Andrew Vagin's avatar
      test/rpc: include unistd.h · 94928cf8
      Andrew Vagin authored
      gcc -c test.c -I ./
      test.c: In function ‘recv_resp’:
      test.c:18:8: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
        len = read(socket_fd, buf, MAX_MSG_SIZE);
              ^
      test.c: In function ‘send_req’:
      test.c:45:6: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
        if (write(socket_fd, buf, len)  == -1) {
            ^
      test.c: In function ‘main’:
      test.c:165:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
        close(fd);
      
      Reported-by: Mr Jenkins
      Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      94928cf8
  2. 07 Aug, 2015 9 commits
  3. 06 Aug, 2015 3 commits
  4. 05 Aug, 2015 7 commits
  5. 03 Aug, 2015 9 commits
  6. 31 Jul, 2015 6 commits
  7. 30 Jul, 2015 3 commits