Update README to mention child subreaping support

This commit is contained in:
Thomas Orozco 2015-09-06 15:38:57 +02:00
parent 5650d29790
commit bfa8e0bf03
2 changed files with 20 additions and 4 deletions

View File

@ -113,9 +113,17 @@ The statically-linked version is bigger, but still < 1M.
Building Tini
-------------
If you'd rather not download the binary, you can build Tini by running
`cmake . && make`.
If you'd rather not download the binary, you can build Tini by just running
`make` (i.e. there is no `./configure` script).
Before building, you probably also want to run:
export CFLAGS="-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"
This ensure that even if you're building on a system that has old Linux Kernel
headers (< 3.4), Tini will be built with child subreaper support. This is
usually what you want if you're going to use Tini with Docker (if your host
Kernel supports Docker, it should also support child subreapers).
Understanding Tini

View File

@ -113,9 +113,17 @@ The statically-linked version is bigger, but still < 1M.
Building Tini
-------------
If you'd rather not download the binary, you can build Tini by running
`cmake . && make`.
If you'd rather not download the binary, you can build Tini by just running
`make` (i.e. there is no `./configure` script).
Before building, you probably also want to run:
export CFLAGS="-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"
This ensure that even if you're building on a system that has old Linux Kernel
headers (< 3.4), Tini will be built with child subreaper support. This is
usually what you want if you're going to use Tini with Docker (if your host
Kernel supports Docker, it should also support child subreapers).
Understanding Tini