Commit 70938a3d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Make sure setting last-pid successed

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 5c7fae14
...@@ -461,7 +461,12 @@ self_len_end: ...@@ -461,7 +461,12 @@ self_len_end:
sizeof(thread_args[i].mem_zone.stack)); sizeof(thread_args[i].mem_zone.stack));
last_pid_len = vprint_num(args->last_pid_buf, thread_args[i].pid - 1); last_pid_len = vprint_num(args->last_pid_buf, thread_args[i].pid - 1);
sys_write(fd, args->last_pid_buf, last_pid_len); ret = sys_write(fd, args->last_pid_buf, last_pid_len);
if (ret < 0) {
write_num_n(__LINE__);
write_num_n(ret);
goto core_restore_end;
}
/* /*
* To achieve functionality like libc's clone() * To achieve functionality like libc's clone()
......
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