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

NodeUtils: do not pass stdin to group upcalls #581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martinetd
Copy link
Collaborator

Some commands consume stdin when they shouldn't, but we shouldn't have been giving stdin to upcalls in the first place.

Reported-by: Kilian Cavalotti kilian@stanford.edu

replaces #580

Some commands consume stdin when they shouldn't, but we shouldn't have
been giving stdin to upcalls in the first place.

Reported-by: Kilian Cavalotti <kilian@stanford.edu>
Copy link
Collaborator

@degremont degremont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a line in the right place in documentation to clarify that?

Otherwise, LGTM!

@martinetd
Copy link
Collaborator Author

Hmm, documentation doesn't seem to say much about how upcalls are executed currently, I think it's fine as it is.

Group source upcalls in doc/sphinx/config.rst could perhaps say something (e.g. "upcalls' standard output is used if the command returns 0, standard input is closed and standard error is shared with the caller"), especially the part about requiring success execution now that I noticed it, I don't know.

@degremont
Copy link
Collaborator

Actually you're right, this is not that important.

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