mirror of
https://github.com/containers/crun.git
synced 2026-02-06 09:46:18 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user