2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

rst: Close logdir earlier

Just a code sanitation.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2013-11-03 17:37:10 +04:00
parent 3e235f715e
commit ca0b51bc00

View File

@ -719,8 +719,6 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
if (prepare_sigactions(pid)) if (prepare_sigactions(pid))
return -1; return -1;
log_closedir();
if (open_vmas(pid)) if (open_vmas(pid))
return -1; return -1;
@ -854,6 +852,9 @@ static int restore_one_task(int pid, CoreEntry *core)
{ {
int ret; int ret;
/* No more fork()-s => no more per-pid logs */
log_closedir();
switch ((int)core->tc->task_state) { switch ((int)core->tc->task_state) {
case TASK_ALIVE: case TASK_ALIVE:
case TASK_STOPPED: case TASK_STOPPED: