Skip to content

Conversation

masterzen
Copy link
Contributor

As seen in #100, it is impossible to tail a named pipe. This adds the necessary code to configure hpcloud/tail when the tailed file is a fifo.

`hpcloud/tail` supports tailing named pipe if we tell it to do so.
This patch detects if the tailed file is a named pipe and configure
`hpcloud/tail` accordingly.

Note that it probably works only on Unix.

Signed-off-by: Brice Figureau <[email protected]>
@masterzen
Copy link
Contributor Author

In retrospect this patch is not enough to successfully tail named pipe :(
I'm going to send also a patch to hpcloud/tail.

@jwilder
Copy link
Owner

jwilder commented Mar 17, 2018

Is there an updated needed for hpcloud/tail still?

@masterzen
Copy link
Contributor Author

Hi @jwilder,
I forgot to push the hpcloud part :(
I just did so, it is hpcloud/tail#135

This patch works AFAIK, but I had some stability issues with inotify and named pipes that are not related to dockerize, so I'm not using this specific feature anymore.

It's up to you to decide if you want to merge the change or not.

Anyway, thanks for dockerize, it's a very useful tool!

@jwilder
Copy link
Owner

jwilder commented Mar 20, 2018

@masterzen Thanks. It looks pretty harmless to merge.

@jwilder jwilder merged commit d79aba5 into jwilder:master Mar 20, 2018
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.

2 participants