Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process blocks when writing to redirected stdout #1554

Open
foobar opened this issue Nov 4, 2022 · 0 comments
Open

process blocks when writing to redirected stdout #1554

foobar opened this issue Nov 4, 2022 · 0 comments

Comments

@foobar
Copy link

foobar commented Nov 4, 2022

If a process redirects stdout, supervisord creates a pipe and watchs for READ event on the pipe. If the readfd() fails due to some error(in my case it's OutOfMemory exception), the pipe will be removed from the poll list but the FD is not closed.
This means the pipe has no reader and the process will block forever when writing something to stdout.

It seems supervisor could either ignore such errors and retry or just close the pipe to let the child get EPIPE on writing to stdout

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

No branches or pull requests

1 participant