Commit graph

225 commits

Author SHA1 Message Date
Chris Kuehl
cbd1db01a8 Let's try bold 2016-07-15 22:25:01 -07:00
Anthony Sottile
d1393dd6fe Merge pull request #95 from chriskuehl/fix-itest-lucid
Fix itest_lucid
2016-07-11 14:59:51 -07:00
Chris Kuehl
1b32040658 Fix itest_lucid 2016-07-02 11:36:30 -07:00
Chris Kuehl
4f1a255b04 Merge pull request #93 from Yelp/remove_unused_hooks
Remove a few unused pre-commit hooks
2016-06-24 13:41:27 -07:00
Anthony Sottile
f131ae86c0 Remove a few unused pre-commit hooks 2016-06-24 13:30:10 -07:00
Anthony Sottile
78ee446099 Merge pull request #91 from chriskuehl/make-tests-less-leaky
Make tests a bit less leaky
2016-06-24 12:07:03 -07:00
Chris Kuehl
135bfcaf2c Add a timeout to tests during builddeb-docker, make verbose 2016-06-24 11:30:40 -07:00
Chris Kuehl
2033f56126 gitignore debian/debhelper-build-stamp 2016-06-24 11:30:40 -07:00
Chris Kuehl
7ab9a2d8d6 Merge pull request #90 from grnhse/debug-on-translate
Print debug output when rewriting signal
2016-06-19 18:36:11 -04:00
Mike McClurg
d57a38b0c1 Print debug output when translating signal 2016-06-19 15:24:34 -07:00
Anthony Sottile
843626f152 Merge pull request #89 from chriskuehl/clean-up-tests
Clean up tests a bit
2016-06-17 15:58:46 -07:00
Chris Kuehl
169727ba43 Clean up tests a bit 2016-06-17 12:47:34 -07:00
Chris Kuehl
35a343fb66 Release v1.1.1 2016-06-17 12:15:30 -07:00
Anthony Sottile
a6df732935 Merge pull request #88 from chriskuehl/fix-segfault-on-unknown-args
Fix segfault on invalid arguments
2016-06-17 11:25:48 -07:00
Chris Kuehl
4ce5ec42d2 Loosen assertion a bit for musl 2016-06-17 11:06:24 -07:00
Chris Kuehl
a2df72a637 Build in stretch instead of jessie to avoid musl bug 2016-06-17 11:06:21 -07:00
Chris Kuehl
b678dbf4b3 Fix segfault on invalid arguments 2016-06-17 10:20:05 -07:00
Chris Kuehl
38dc560513 Release v1.1.0 2016-06-14 11:50:24 -07:00
Chris Kuehl
2d5483d689 Merge pull request #86 from chriskuehl/add-signal-ignoring
Add ability to ignore (not proxy) signals
2016-06-14 14:44:44 -04:00
Chris Kuehl
1a7c635071 Add ability to ignore signals 2016-06-14 11:34:52 -07:00
Chris Kuehl
859cfa61de Merge pull request #85 from chriskuehl/allow-rewrite-tty-signals
Use new signal rewriting for TTY signal special cases
2016-06-14 14:15:18 -04:00
Chris Kuehl
554760fda6 Use signal rewriting for TTY signal special cases 2016-06-14 11:08:33 -07:00
Chris Kuehl
54a2fe46cb Merge pull request #83 from grnhse/translate-sigterm
Add '--signal' option to replace SIGTERM
2016-06-14 13:18:12 -04:00
Mike McClurg
38f63093cb Merge pull request #2 from chriskuehl/translate-sigterm
Add signal translation tests
2016-06-14 08:47:54 -06:00
Chris Kuehl
9e456addb7 Add signal translation tests 2016-06-13 14:33:51 -07:00
Mike McClurg
6f6b51f869 Rewrite arbitrary signals, and update tests
We've decided to allow arbitrary signal rewriting, not just SIGTERM
rewriting. To use, call dumb-init with the '-r s:r' option, which will
rewrite signum s to signum r. Only signals 1-31 are allowed to be
rewritten, which should cover all the signals we need to cover.

Note that this commit does not add new tests, it only fixes the existing
broken test.
2016-06-09 16:05:27 -06:00
Mike McClurg
3b6e9f256f Add '--signal' option to replace SIGTERM
Many servers respond to other signals than SIGTERM for their "soft
shutdown" option, such as Unicorn which requires SIGQUIT to wait on
outstanding connections. The 'docker stop' command sends the SIGTERM
signal to the container, and provides no option for modifying this
behavior. The 'docker kill' command has an '-s' option which allows one
to modify the signal sent to the container, but orchestration frameworks
such as Mesos don't provide a way to use this functionality.

This commit adds the '-s/--signal' option to dumb-init, which provides a
replacement signal for SIGTERM. For instance, running dumb-init like so:

  dumb-init -s 3 <command>

Will send SIGQUIT (3) to the <command> process it spawns when it
receives a SIGTERM. This allows Docker image writers the freedom to
specify how SIGTERM will behave in their containers.

A further improvement to this option could be to provide an arbirary
mapping from signal to signal, but that would greatly complicate the
code for a probably minor use case.
2016-06-08 16:20:57 -06:00
Chris Kuehl
662a3b7096 Release v1.0.3 2016-06-01 20:42:37 -04:00
Anthony Sottile
4ebd31a80e Merge pull request #82 from chriskuehl/fix-exec-fail-message
Fix incorrect error on bad exec when passing args
2016-05-28 03:01:56 -07:00
Chris Kuehl
b7aee39721 Fix incorrect error on bad exec when passing args 2016-05-28 02:03:19 -04:00
Anthony Sottile
e0ec865a6a Merge pull request #79 from chriskuehl/better-document-build-process
Document the build process better
2016-05-20 10:20:01 -07:00
Chris Kuehl
060200eea6 Document the build process better 2016-05-20 09:50:59 -07:00
Anthony Sottile
c7c6b00dd7 Merge pull request #75 from asottile/non_purelib
dumb-init is not a pure python package
2016-05-14 22:19:18 -07:00
Anthony Sottile
3fb0f69730 dumb-init is not a pure python package 2016-05-14 22:04:54 -07:00
Chris Kuehl
407813e07a Release v1.0.2 2016-05-02 11:41:45 -07:00
Chris Kuehl
6449c1ad62 Merge pull request #72 from chriskuehl/simplify-using-sigwait
Simplify signal handling using sigwait, eliminate some undefined behavior
2016-04-29 17:58:58 -07:00
Chris Kuehl
256edaef74 Simplify dumb-init behavior using sigwait 2016-04-29 17:13:52 -07:00
Buck Evan
6faf204a0b Merge pull request #71 from chriskuehl/fix-flaky-job-control-tests
Fix flaky job control tests
2016-04-29 15:43:27 -07:00
Chris Kuehl
223da04e22 Fix flaky job control tests 2016-04-29 15:15:02 -07:00
Anthony Sottile
adc3c61bd0 Merge pull request #69 from Yelp/simplify_makefile
Simplify makefile slightly
2016-04-27 18:01:34 -07:00
Anthony Sottile
376c3b1425 Simplify makefile slightly 2016-04-27 16:22:56 -07:00
Chris Kuehl
322088f0e9 Merge pull request #66 from chriskuehl/add-xenial-itest
Add Ubuntu xenial itest, test Python 3.5, fix some test bitrot
2016-04-27 13:10:36 -07:00
Chris Kuehl
f6e9c31720 Run itest_xenial on CircleCI 2016-04-27 12:54:04 -07:00
Chris Kuehl
bc3ea40e44 Add Ubuntu xenial itest, also test Python 3.5 2016-04-27 12:47:10 -07:00
Anthony Sottile
ce8521cab8 Merge pull request #65 from sanmai-NL/patch-1
fix: calculate SHA256 hash value in binary mode
2016-04-05 09:10:26 -07:00
Sander Maijers
47e382ed40 fix: calculate SHA256 hash value in binary mode
Correctness fix. This change will not make a difference on Unix. See [https://www.virtualbox.org/ticket/9569].
2016-04-05 17:05:48 +02:00
Chris Kuehl
95c1e8473a Merge pull request #64 from chriskuehl/improve-debian-based-on-upstream
Improve Debian packaging based on downstream package
2016-04-04 17:15:49 -07:00
Chris Kuehl
d90288f09e Improve Debian packaging based on downstream package 2016-04-04 16:56:24 -07:00
Chris Kuehl
c2de8ef0c8 Merge pull request #62 from chriskuehl/checksum-releases
Upload SHA256 checksums of releases
2016-03-18 14:20:45 -07:00
Chris Kuehl
25e4e62b16 Upload SHA256 checksums of releases 2016-03-18 14:13:24 -07:00