2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

crtools: Sanitize the tasklist states switch

Introduce a helper for walking the list and sending signals.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Pavel Emelyanov
2012-01-11 13:29:35 +04:00
committed by Cyrill Gorcunov
parent 7fde5f061b
commit 0ca9ccc3e4
5 changed files with 37 additions and 37 deletions

View File

@@ -28,15 +28,15 @@ enum {
CR_FD_MAX
};
enum cr_task_final_state {
CR_TASK_LEAVE_STOPPED, /* leave tasks stopped after dump/restore */
CR_TASK_LEAVE_RUNNING, /* leave tasks running after dump/restore */
CR_TASK_KILL, /* kill tasks after dump */
enum cr_task_state {
CR_TASK_RUN,
CR_TASK_STOP,
CR_TASK_KILL,
};
struct cr_options {
bool leader_only;
enum cr_task_final_state final_state;
enum cr_task_state final_state;
bool show_pages_content;
char *show_dump_file;
};