Commit 2fbf267b authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

test/libcriu: inlude all required headers

Reported-by: Mr Jenkins
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Acked-by: 's avatarRuslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4eb0952c
......@@ -5,6 +5,9 @@
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#define PID_MAX "/proc/sys/kernel/pid_max"
......
......@@ -6,6 +6,8 @@
#include <signal.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include "lib.h"
static int wdir_fd, cur_iter = 1, cur_imgdir = -1;
......@@ -115,7 +117,7 @@ int main(int argc, char **argv)
}
printf(" `- Dump succeeded\n");
wait(pid, NULL, 0);
waitpid(pid, NULL, 0);
printf("--- Restore loop ---\n");
criu_init_opts();
......
......@@ -4,6 +4,10 @@
#include <errno.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "lib.h"
#define SUCC_ECODE 42
......
......@@ -4,6 +4,9 @@
#include <errno.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "lib.h"
static int stop = 0;
......@@ -78,7 +81,7 @@ int main(int argc, char **argv)
}
printf(" `- Dump succeeded\n");
wait(pid, NULL, 0);
waitpid(pid, NULL, 0);
printf("--- Restore loop ---\n");
criu_init_opts();
......
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