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

Support for file descriptors on Linux #71

Open
dominik-korsa opened this issue Nov 21, 2023 · 1 comment
Open

Support for file descriptors on Linux #71

dominik-korsa opened this issue Nov 21, 2023 · 1 comment

Comments

@dominik-korsa
Copy link

Hi, in a project I'm a contributor of we need to call an external binary, which uses an extra file descriptor (FD 3) for output, in addition to stdout and stderr. Currently we are using std::process together with the command-fds crate (https://github.com/google/command-fds), but we are looking forwards to migrating to the subprocess crate (to make use of the timeout and non-blocking I/O features).
Is it possible to use custom file descriptors together with rust-subprocess? Ideally custom FDs would support all the features which standard streams (stdin, stdout, stderr) support, like reading/writing to Vecs or files and using pipes - after all on Linux the standard streams are just file descriptors.

@hniksic
Copy link
Owner

hniksic commented Nov 21, 2023

Custom file descriptors are currently not supported. The library is currently not very actively maintained, since std::process now has many more features compared to when I started writing subprocess.

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

No branches or pull requests

2 participants