In `container_delete`, the type used for the `force` boolean should be
`b` (a single unsigned byte) instead of `n` (the size of `size_t`).
This incorrect type can cause the neighboring `id` argument to be
overwritten with a NULL value, which makes the container deletion fail.
Signed-off-by: Mattéo Delabre <git.matteo@delab.re>
The number of arguments in the format string passed to
`PyArg_ParseTupleAndKeywords` did not match the number of entries in
`kwlist`, resulting in an error when trying to pass non-mandatory
arguments such as `detach`.
Signed-off-by: Mattéo Delabre <git.matteo@delab.re>
do not fork the current process on create, this prevents creating
additional processes to wait for.
It solves a race when the OCI runtime caller has SUBREAPER set, such
as Buildah. When the initial process exited, the container process
cannot be directly waited for as there are other processes to reap
first.
Closes: https://github.com/containers/crun/issues/215
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>