python: unset LIBCRUN_RUN_OPTIONS_PREFORK for run

do not create a new process for each run.

Closes: https://github.com/containers/crun/issues/948

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2022-07-11 20:30:13 +02:00
parent 9ceba95234
commit 88e87109ec

View File

@@ -163,7 +163,7 @@ container_run (PyObject *self, PyObject *args)
return NULL;
Py_BEGIN_ALLOW_THREADS;
ret = libcrun_container_run (ctx, ctr, LIBCRUN_RUN_OPTIONS_PREFORK, &err);
ret = libcrun_container_run (ctx, ctr, 0, &err);
Py_END_ALLOW_THREADS;
if (ret < 0)
return set_error (&err);