Commit 42c755b4 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restorer: last_pid_ns should be written without eol

Otherwise -EINVAL returned
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 4f797015
......@@ -461,7 +461,7 @@ self_len_end:
sizeof(thread_args[i].mem_zone.stack));
last_pid_len = vprint_num(args->last_pid_buf, thread_args[i].pid - 1);
ret = sys_write(fd, args->last_pid_buf, last_pid_len);
ret = sys_write(fd, args->last_pid_buf, last_pid_len - 1);
if (ret < 0) {
write_num_n(__LINE__);
write_num_n(ret);
......
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