Commit Graph

177 Commits

Author SHA1 Message Date
Thomas Orozco 41cc6b38dd Bump version to v0.14.0 2017-02-05 13:31:47 +01:00
Thomas Orozco 8d569f0419 Update docs to mention 32-bit build 2017-01-28 15:29:33 +01:00
Thomas Orozco a2de1a79f2 Build i386 binary
Fixes https://github.com/krallin/tini/issues/30
2017-01-28 15:24:05 +01:00
Thomas Orozco b837c033f8 Merge pull request #70 from krallin/more-README
Add "Why Tini?" section in the README
2017-01-02 21:22:55 +01:00
Thomas Orozco 39f7778e32 Add "Why Tini?" section in the README
Adds a summary of #8 and a link to that discussion.
2017-01-02 21:16:33 +01:00
Thomas Orozco c6e0058046 Merge pull request #68 from akimd/fix-c-switch
fix C conformance
2016-12-18 20:16:16 +01:00
Akim Demaille 9ecda1bbf1 fix C conformance
Someone has been writing too much Go recently.  This works because
`errno` is typically a macro coming with its own set of parens.
2016-12-18 18:20:44 +01:00
Thomas Orozco 79016ecced Merge pull request #67 from krallin/fix-subreaper
Fix PR_SET_CHILD_SUBREAPER call
2016-12-18 00:33:48 +01:00
Thomas Orozco 81c54470e6 Bump version to 0.13.2 2016-12-18 00:23:57 +01:00
Thomas Orozco 10094b7097 Fix PR_SET_CHILD_SUBREAPER call
PR_SET_CHILD_SUBREAPER actually requires a non-zero argument to `prctl`
in order to work..!

Now, this used to work just fine (and currently works in most places)
because when we use a libc that doesn't know about
PR_SET_CHILD_SUBREAPER, it doesn't do anything about the second argument
passed to `pctrl`, so we end up sending some junk in as the second
argument. What we send appears to be completely random and as such seems
very unlikely to be zero, and so things appear to work (e.g. the tests
all pass, etc.).

However, using a libc that does know about this argument (e.g. Ubuntu
Xenial), things *don't* work because the second argument is
automatically set to 0 when we don't provide one.

This probably went unnoticed for a while considering that `tini-static`
isn't affected (it's built on Trusty), and that this mode isn't enabled
by default in the first place.
2016-12-18 00:19:20 +01:00
Thomas Orozco d83552dfa3 Merge pull request #66 from krallin/add-geek-to-contributors
Add @geek to contributors
2016-12-06 21:01:44 +01:00
Thomas Orozco 82e8cc0fd4 Add @geek to contributors 2016-12-06 20:56:03 +01:00
Thomas Orozco ed34702cbf Merge pull request #65 from krallin/fix-tcsetpgrp-typos
Fix tcsetpgrp typos / Release 0.13.1
2016-12-05 21:07:22 +01:00
Thomas Orozco 042898f255 Bump version to 0.13.1 2016-12-05 21:01:41 +01:00
Thomas Orozco e38caaf9dd Fix some tcsetpgrp error typos 2016-12-05 21:00:08 +01:00
Thomas Orozco d6938f1a63 Merge pull request #64 from geek/master
Support ENXIO on lx-branded zones
2016-12-05 20:59:02 +01:00
Wyatt Preul 657f02ed38 Support possible failure on lx-branded zones 2016-12-03 14:28:07 -06:00
Thomas Orozco 949e6facb7 Merge pull request #63 from krallin/include-preprocessed-license
Include pre-processed license in repo
2016-11-17 20:26:27 +01:00
Thomas Orozco 325bf78674 Include pre-processed license in repo
Also adding a test in run_build.sh to ensure that the pre-processed
license is always up to date with the actual license file.

To recreate: `xxd -i LICENSE > src/license.h`
2016-11-17 20:20:58 +01:00
Thomas Orozco a87614212b Merge pull request #61 from andrewhsu/fix-fwrite
handle return val of fwrite() to pacify compiler warn
2016-11-13 18:31:45 +01:00
Andrew Hsu 1f6e456fc2 handle return val of fwrite() to pacify compiler warn
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-11-11 12:05:21 -08:00
Thomas Orozco 4a92b9e201 Merge pull request #60 from krallin/white-label
"White label" when MINIMAL is set
2016-11-04 18:11:12 +01:00
Thomas Orozco e8de7825e6 Bump version to 0.13.0 2016-11-04 18:06:25 +01:00
Thomas Orozco c88c1f4ea4 Update outer tests to support MINIMAL 2016-11-04 18:06:25 +01:00
Thomas Orozco b67a024460 Rename NO_ARGS to MINIMAL 2016-11-04 18:06:25 +01:00
Thomas Orozco a60521a432 Add @crosbymichael to contributors 2016-11-04 13:31:19 +01:00
Michael Crosby 51df7df854 Handle execve exit status
This changes the execve exit status for the child process to be inline
with standard exit status codes for common execve failures.

I don't think this breaks any backwards compat with existing tini users
because it is still returning a non zero exit status but with correct
codes providing more information why it failed.
2016-11-04 13:25:14 +01:00
Thomas Orozco b3a2ba638e NO_ARGS: White labelling
- Don't mention options that don't exist in Usage.
- Don't include a log prefix when NO_ARGS is set.
- Turn up the default verbosity to FATAL when NO_ARGS is set.
- Expose verbosity via an ENV var for debugging.
2016-11-04 13:22:41 +01:00
Thomas Orozco a88563ec34 Merge pull request #58 from krallin/version-flag
Add a --version flag
2016-11-03 22:49:40 +01:00
Thomas Orozco 99b7ab7004 Bump version to 0.12.0 2016-11-03 22:38:02 +01:00
Thomas Orozco c9ff1b6917 Add a --version flag
See: https://github.com/krallin/tini/issues/55
2016-11-03 19:32:59 +01:00
Thomas Orozco 9c00aea006 Merge pull request #57 from krallin/sync-readme
[ci skip] 0.11.0: Sync README
2016-11-02 22:41:49 +01:00
Thomas Orozco 082c13d48e [ci skip] 0.11.0: Sync README 2016-11-02 22:40:54 +01:00
Thomas Orozco 9e617e76d7 Merge pull request #56 from krallin/release-0.11.0
Release 0.11.0
2016-11-02 22:15:55 +01:00
Thomas Orozco be920296b9 Bump version to 0.11.0 2016-11-02 21:59:24 +01:00
Thomas Orozco 2484f1a951 Reaping test: remove no sleep assumption
The reaping test assumes that all the `sleep` processes on the system
are created by us, which is an incorrect assumption, and creates
problems now that we run in a more "complete" system in CI (i.e. not in
a minimal container).

This solves the issue by not assuming that random sleep processes are
related to us: instead, we look at whether these processes are in our
process group.

This also includes a little clean up of the reaping stage 1.
2016-11-02 21:55:19 +01:00
Thomas Orozco 7c9d3b39a9 .travis.yml does not need to be a template anymore 2016-11-02 21:28:20 +01:00
Thomas Orozco 480fed14ae Optionally disable arg parsing (-DNO_ARGS=ON) 2016-11-02 18:05:12 +01:00
Thomas Orozco fa597944fa Log reaping test failures 2016-11-02 17:43:03 +01:00
Thomas Orozco 271c09796e Update README to mention ARM images 2016-10-30 15:55:56 +01:00
Thomas Orozco 6131b96251 Skip packages on ARM
Right now, the packages are hard-coded to report the amd64 architecture.
I'm not sure they'll be used or needed, so for now let's ignore and skip
them.
2016-10-30 15:55:56 +01:00
Thomas Orozco c8cc8274b8 ARM Cross Builds
- Upgrade to Trusty for the ARM 64 toolchain.
- Cross-compile to ARM.
- Label binaries and packages when releasing.
2016-10-30 15:55:56 +01:00
Jorge Marin df9dbc1055 Replace GPG key short id for full fingerprint (#48)
Prevent dead beef attack
2016-09-01 19:31:55 +02:00
Thomas Orozco b4824de6ca Merge pull request #47 from krallin/add-license-option
Add license option
2016-08-12 18:46:02 -04:00
Thomas Orozco 75217ef640 Bump version to 0.10.0
- New `-l` option to show license and exit.
2016-08-12 18:43:08 -04:00
Thomas Orozco 203835d2a6 Remove obsolete comment
tini -h does exit with 0 via `parse_fail_exitcode_ptr`.
2016-08-10 08:52:20 +02:00
Thomas Orozco be71d120e7 Embed license and add -l flag to show it
This adds 1k of weight to the resulting binary, which is reasonable
(it's less than 5% for the smaller non-static binary), but alleviates
legitimate user concern that the license requires being included when
Tini is redistributed.
2016-08-10 08:50:47 +02:00
Thomas Orozco 2eeac4cd60 Don't attempt to sign without GPG_PASSPHRASE
This ensures PRs can build even though GPG_PASSPHRASE is missing.
2016-08-10 08:49:56 +02:00
Thomas Orozco 24969266fc Merge pull request #40 from krallin/new-alpine-instructions
[ci skip] Update Alpine instructions
2016-06-03 19:35:40 +02:00
Thomas Orozco a61a036c6e [ci skip] Update Alpine instructions 2016-06-03 19:34:45 +02:00