Commit 43292877 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: clean up test_fork

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 156b1b81
......@@ -32,17 +32,9 @@ TEST_OPTION(pidfile, string, "file to store pid", 1);
static pid_t master_pid = 0;
int proc_id = 0;
static int proc_id_cur = 0;
int test_fork_id(int id)
{
pid_t pid = fork();
if (id < 0)
id = ++proc_id_cur;
if (pid == 0)
proc_id = id;
return pid;
return fork();
}
#define INPROGRESS ".inprogress"
......
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