Skip to content

Commit b56b92e

Browse files
committed
python: expose detach
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent 319f391 commit b56b92e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/crun_python.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ make_context (PyObject *self, PyObject *args, PyObject *kwargs)
120120
char *state_root = NULL;
121121
char *notify_socket = NULL;
122122
static char *kwlist[] =
123-
{ "id", "state-root", "systemd-cgroup", "notify-socket", NULL };
123+
{ "id", "state-root", "systemd-cgroup", "notify-socket", "detach", NULL };
124124
struct libcrun_context_s *ctx = malloc (sizeof (*ctx));
125125
if (ctx == NULL)
126126
return NULL;
@@ -130,8 +130,8 @@ make_context (PyObject *self, PyObject *args, PyObject *kwargs)
130130
ctx->fifo_exec_wait_fd = -1;
131131

132132
if (!PyArg_ParseTupleAndKeywords
133-
(args, kwargs, "s|sssbs", kwlist, &id, &bundle, &state_root,
134-
&ctx->systemd_cgroup, &notify_socket))
133+
(args, kwargs, "s|sssbsb", kwlist, &id, &bundle, &state_root,
134+
&ctx->systemd_cgroup, &notify_socket, &ctx->detach))
135135
return NULL;
136136

137137
ctx->id = xstrdup (id);

0 commit comments

Comments
 (0)