Skip to content

man page inaccuracy about --sig-proxy and --tty #5547

@ldoktor

Description

@ldoktor

Hi guys,

Original tracer:
https://bugzilla.redhat.com/show_bug.cgi?id=1087697

the man page states:
--sig-proxy=true: Proxify all received signal to the process (even in non-tty mode)

But the real behavior is, that sig-proxy doesn't work when --tty=true. It should be mentioned in there, taht --sig-proxy is incompatible with --tty.

Version-Release number of selected component (if applicable):
docker-io-0.9.1-1.fc21.x86_64
docker-io-0.10.0-2.fc20.x86_64

How reproducible:
always

Steps to Reproduce:

  1. man docker

Actual results:
man page says it works even in non-tty

Expected results:
man page warns that --tty can't be used with --sig-proxy

How to verify:

  1. docker run --tty=true -i --rm fedora bash -c 'for NUM in seq 1 64; do trap "echo Received $NUM, ignoring..." $NUM; done; while :; do sleep 1; done'
  2. ps -ax | grep docker
  3. kill -SIGUSR1 $PID
  4. (with --tty=true no signals are received, when you try the same with --tty=false, signals are proxified and messages are displayed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions