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

ProcessBuilder.Sink.#< is causing Process non-termination from 2.12 #10055

Closed
scabug opened this issue Nov 14, 2016 · 2 comments
Closed

ProcessBuilder.Sink.#< is causing Process non-termination from 2.12 #10055

scabug opened this issue Nov 14, 2016 · 2 comments

Comments

@scabug
Copy link

scabug commented Nov 14, 2016

Here's the transcript of a REPL session with scala 2.11:

Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
Type in expressions for evaluation. Or try :help.

scala> import scala.sys.process._
import scala.sys.process._

scala> Process("date").!
Mon Nov 14 12:14:46 GMT 2016
res0: Int = 0

scala> Process("date").#<( () => -1 ).!
Mon Nov 14 12:14:49 GMT 2016
res1: Int = 0

Here is the same REPL session under 2.12.0

Welcome to Scala 2.12.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112).
Type in expressions for evaluation. Or try :help.

scala> import scala.sys.process._
import scala.sys.process._

scala> Process("date").!
Mon Nov 14 12:15:21 GMT 2016
res0: Int = 0

scala> Process("date").#<( () => -1 ).!
Mon Nov 14 12:15:23 GMT 2016

This session is hanging indefinitely and the process exit code is never returned

@scabug
Copy link
Author

scabug commented Nov 14, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10055?orig=1
Reporter: @oxbowlakes
Affected Versions: 2.12.0
See #9824
Duplicates #10007

@som-snytt
Copy link

Duplicates #9824

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