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

File descriptors as arguments #173

Open
andrewchambers opened this issue Jun 3, 2019 · 0 comments
Open

File descriptors as arguments #173

andrewchambers opened this issue Jun 3, 2019 · 0 comments
Labels
enhancement New feature or request maybe

Comments

@andrewchambers
Copy link
Owner

andrewchambers commented Jun 3, 2019

Because janet shell is typed, we can do something like:

cat (something returning core/file) -> cat /dev/fd/63

This can work in tandem with coprocesses.

questions, does this work on all platforms? if not, can we make it work using temporary mkfifo, this probably would involve a list of paths to unlink on job cleanup.

Should we close the descriptor after forking in the parent?

@andrewchambers andrewchambers added enhancement New feature or request maybe labels Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe
Projects
None yet
Development

No branches or pull requests

1 participant