vz: cal process_init(ct->p) for OpenVZ containers

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: use clone() instead of fork()

It's preparation to use CLONE_PARENT.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: use CLONE_PARENT to fork a container

It allows to avoid a proxy process.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: use CLONE_PARENT to enter into CT

Signed-off-by: Andrey Vagin <avagin@openvz.org>
util: move spawn_{wait,wake} functions

They will be used in the VZ driver too

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: handle errors of execve

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: support a new interface of child file descriptors

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: set resource limits in one place

Signed-off-by: Andrey Vagin <avagin@openvz.org>
vz: add the newline character in log messages

Signed-off-by: Andrey Vagin <avagin@openvz.org>
tests: check errors in vz_create_exec

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Merge pull request #30 from avagin/vz

vz: use CLONE_PARENT to fork a container