Commit ca0b51bc authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Close logdir earlier

Just a code sanitation.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3e235f71
......@@ -719,8 +719,6 @@ static int restore_one_alive_task(int pid, CoreEntry *core)
if (prepare_sigactions(pid))
return -1;
log_closedir();
if (open_vmas(pid))
return -1;
......@@ -854,6 +852,9 @@ static int restore_one_task(int pid, CoreEntry *core)
{
int ret;
/* No more fork()-s => no more per-pid logs */
log_closedir();
switch ((int)core->tc->task_state) {
case TASK_ALIVE:
case TASK_STOPPED:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment