Commit Graph

13 Commits

Author SHA1 Message Date
Qi Feng
51dc99eea3 fix error handling of asprintf 2020-07-31 00:46:08 +08:00
Giuseppe Scrivano
ebc0546899 python: sync with libcrun
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-15 11:42:54 +02:00
Giuseppe Scrivano
34a0ff3cc9 license: change license to gplv2+ and lgpl2.1+
change the license to GPLv2+ and for libcrun to LGPLv2.1+.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-02-26 08:04:51 +01:00
Giuseppe Scrivano
8cf80df516 container: do not fork on create
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>
2019-12-17 18:04:10 +01:00
Giuseppe Scrivano
1c9ffac294 python: fix build errors
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2019-05-31 10:14:24 +02:00
Giuseppe Scrivano
75f183b946 src: fix issues reported by coverity
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2019-03-25 11:11:19 +01:00
Giuseppe Scrivano
57a02dfbc8 src: update copyright years
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2019-01-01 21:29:59 +01:00
Giuseppe Scrivano
8337ad9706 libcrun: rename stderr to errfile
stderr is defined as a macro in musl libc.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-06-13 20:10:49 +02:00
Giuseppe Scrivano
93e9f372e8 python: propagate exit codes
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-03-20 15:06:22 +01:00
Giuseppe Scrivano
de6338eaab python: use Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-03-15 19:54:53 +01:00
Giuseppe Scrivano
b56b92e8f7 python: expose detach
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-03-15 19:54:53 +01:00
Giuseppe Scrivano
319f391420 python: use prefork for run
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-03-15 19:54:53 +01:00
Giuseppe Scrivano
a2b5faf88a python: add Python bindings
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-03-14 22:29:16 +01:00