Skip to content

Comments

Forward stdin#44

Merged
crbelaus merged 1 commit intocrbelaus:mainfrom
LostKobrakai:patch-2
Sep 14, 2025
Merged

Forward stdin#44
crbelaus merged 1 commit intocrbelaus:mainfrom
LostKobrakai:patch-2

Conversation

@LostKobrakai
Copy link
Contributor

I haven't extensively tested this, but it seems to work for my usecase.

The problem was that I made vite handle stdin closing by itself (for nodejs) and then the wrapper would make the process close immediately. This should work no matter if the started process handles stdin closes by itself.

Copy link
Owner

@crbelaus crbelaus left a comment

Choose a reason for hiding this comment

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

I wonder if we shouldn't use stdin: "inherit" instead like we do for stdout and for stderr. Can you test if it works properly with Vite?

@LostKobrakai
Copy link
Contributor Author

It's been a few weeks, but iirc inherit meant the wrapper didn't handle exits properly anymore. There's not really data sent down anyways, so it shouldn't really matter.

@crbelaus
Copy link
Owner

Makes sense. Thanks a lot!

@crbelaus crbelaus merged commit 161a00f into crbelaus:main Sep 14, 2025
8 checks passed
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