Skip to content

Conversation

@vieux
Copy link
Contributor

@vieux vieux commented Oct 29, 2013

@tianon
Copy link
Member

tianon commented Oct 29, 2013

Can we rebase this now that master includes links? :)

@tianon
Copy link
Member

tianon commented Oct 29, 2013

Rebased with permission from @shykes; testing now.

@tianon
Copy link
Member

tianon commented Oct 29, 2013

Shouldn't this proxy with something simple like docker run -i -t tianon/debian bash ? Here's my output:

tianon@host$ docker run -i -t tianon/debian bash
root@cebc0312a73c:/# trap 'echo hello world!' SIGUSR1
root@cebc0312a73c:/# kill -USR1 $$
hello world!
root@cebc0312a73c:/#

Open second terminal, find PID of docker run (in my case, 4093), and do:

tianon@host$ kill -USR1 4093

No extra output on the first terminal. Shouldn't SIGUSR1 be "proxified" to bash?

@tianon
Copy link
Member

tianon commented Oct 29, 2013

Is this saying that if there is a TTY, we always force-disable sig-proxy ?

+  if config.Tty {
+    sigProxy = false
+  }

@vieux
Copy link
Contributor Author

vieux commented Oct 29, 2013

@tianon yes, because in tty mode, signals are always proxified, using the raw terminal method

@tianon
Copy link
Member

tianon commented Oct 29, 2013

So why didn't my SIGUSR1 get proxified?

@crosbymichael
Copy link
Contributor

@vieux

There is something wrong with this branch. I am getting error messages in the tests.

-- PASS: TestImagesFilter (0.14 seconds)
=== RUN TestServerListOrderedImagesByCreationDate
[error] api.go:78 HTTP Error: statusCode=404 No such container: ff5e69349b4d
[error] api.go:1023 Error: No such container: 6f785d278165
[error] api.go:78 HTTP Error: statusCode=404 No such container: 6f785d278165
[error] api.go:1023 Error: No such container: f93fbb878f6b
[error] api.go:78 HTTP Error: statusCode=404 No such container: f93fbb878f6b
[error] api.go:1023 Error: No such container: ec391abab5ea
[error] api.go:78 HTTP Error: statusCode=404 No such container: ec391abab5ea
[error] api.go:1023 Error: No such container: 63aa5fc69086
[error] api.go:78 HTTP Error: statusCode=404 No such container: 63aa5fc69086
[error] api.go:1023 Error: No such container: 588ec30a53cf
[error] api.go:78 HTTP Error: statusCode=404 No such container: 588ec30a53cf
[error] api.go:1023 Error: No such container: d290fb38e240
[error] api.go:78 HTTP Error: statusCode=404 No such container: d290fb38e240
[error] api.go:1023 Error: No such container: d290fb38e2406ab20316c77eeb07c2afbf04b1d083a4655494ceb22a9cba6700
[error] api.go:78 HTTP Error: statusCode=404 No such container: d290fb38e2406ab20316c77eeb07c2afbf04b1d083a4655494ceb22a9cba6700
[error] api.go:1023 Error: No such container: ff5e69349b4d
[error] api.go:78 HTTP Error: statusCode=404 No such container: ff5e69349b4d
[error] api.go:1023 Error: No such container: 6f785d278165
[error] api.go:78 HTTP Error: statusCode=404 No such container: 6f785d278165
[error] api.go:1023 Error: No such container: f93fbb878f6b
[error] api.go:78 HTTP Error: statusCode=404 No such container: f93fbb878f6b
[error] api.go:1023 Error: No such container: ec391abab5ea
[error] api.go:78 HTTP Error: statusCode=404 No such container: ec391abab5ea
[error] api.go:1023 Error: No such container: 63aa5fc69086
[error] api.go:78 HTTP Error: statusCode=404 No such container: 63aa5fc69086
[error] api.go:1023 Error: No such container: ff5e69349b4d
[error] api.go:78 HTTP Error: statusCode=404 No such container: ff5e69349b4d
[error] api.go:1023 Error: No such container: d290fb38e2406ab20316c77eeb07c2afbf04b1d083a4655494ceb22a9cba6700
[error] api.go:78 HTTP Error: statusCode=404 No such container: d290fb38e2406ab20316c77eeb07c2afbf04b1d083a4655494ceb22a9cba6700
[error] api.go:1023 Error: No such container: 588ec30a53cf
[error] api.go:78 HTTP Error: statusCode=404 No such container: 588ec30a53cf
[error] api.go:1023 Error: No such container: d290fb38e240
[error] api.go:78 HTTP Error: statusCode=404 No such container: d290fb38e240

@vieux
Copy link
Contributor Author

vieux commented Oct 29, 2013

@crosbymichael can you take another look ?

@tianon
Copy link
Member

tianon commented Oct 29, 2013

Thanks to @vieux, I can verify that this is indeed working for me. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why this needs to be in _darwin and _linux, The code is the same.

@crosbymichael
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants