-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
reactor: pass fd opened in blocking mode to spawned process #1542
reactor: pass fd opened in blocking mode to spawned process #1542
Conversation
LGTM. But should we also remove the decorator in test_spawn_input? |
* pass fds opened in blocking mode to spawned process * do not tolerate test failures in test_spawn_input it turns out tools like "cat" expect fd opened blocking mode. while the pipe fds are always created in non-blocking mode. so in order to appease these tools, let's set the fds passed to the spawned process to blocking mode. Fixes scylladb#1320 Signed-off-by: Jianyong Chen <baluschch@gmail.com> Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
133e1b5
to
486f38d
Compare
yes. fixed and repushed. |
CI passed! 💪 |
i am still running the previously failing test. will report back once once the counter reaches 65535. |
|
So sad. 😢 I'm home now an no Linux machine around. You can close this PR first and I'll make more invetigations when I'm free. |
yup. It's sad. Thank you for your help! |
the fix does not address this issue. i will close it after @balusch acks it.
it turns out tools like "cat" expect fd opened blocking mode. while the pipe fds are always created in non-blocking mode. so in order to appease these tools, let's set the fds passed to the spawned process to blocking mode.
Fixes #1320
Signed-off-by: Jianyong Chen baluschch@gmail.com
Signed-off-by: Kefu Chai kefu.chai@scylladb.com