typesafehub / akka-contrib-extra

ConductR Akka contributions
Other
9 stars 16 forks source link

Close process stdin when the stream completes #69

Closed skennedy closed 7 years ago

skennedy commented 7 years ago

Firstly, thanks for the NonBlockingProcess actor - this is exactly what I was looking for. Realize it's pretty bleeding edge but I'd love to help getting it stable.

The process I was trying to wrap takes input on stdin, and waits for EOF before outputting to stdout and terminiating - but using the actor the process was hanging because stdin wasn't being closed.

I found the NuProcess.closeStdin API, and sure enough hooking that into the Sink completion did the trick.