dotcloud/docker — pull request #6508 by mheon (2014-06-18 15:08:26+00:00)
Title: Increase size of buffer for signal forwarding with --sig-proxy

Sending signals rapidly to a container (for example, through a script) frequently results in some signals being dropped. Root cause of this seems to be the chan for holding signals to be forwarded has a buffer size of 1, and if 2 or more new signals arrived while one was being forwarded, signals were lost. Increasing the buffer should fix this.

The value 128 here is somewhat arbitrary, but seems reasonable for normal use cases. Open to adjusting this up or down.