summaryrefslogtreecommitdiff
path: root/src/library/scala/sys
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-11 20:20:04 +0000
committerPaul Phillips <paulp@improving.org>2011-04-11 20:20:04 +0000
commit7d9d9d453a238514bde191f459426207657e1a6c (patch)
treebff816aecb54c153b87d9995a5bea48f7b5c3da7 /src/library/scala/sys
parentf229addbcbdda8625b9c9788c83e60ca9cedd448 (diff)
downloadscala-7d9d9d453a238514bde191f459426207657e1a6c.tar.gz
scala-7d9d9d453a238514bde191f459426207657e1a6c.tar.bz2
scala-7d9d9d453a238514bde191f459426207657e1a6c.zip
Pulled daemonized from the process API based on...
Pulled daemonized from the process API based on input from harrah. No review.
Diffstat (limited to 'src/library/scala/sys')
-rw-r--r--src/library/scala/sys/process/ProcessBuilder.scala6
-rw-r--r--src/library/scala/sys/process/ProcessBuilderImpl.scala9
2 files changed, 8 insertions, 7 deletions
diff --git a/src/library/scala/sys/process/ProcessBuilder.scala b/src/library/scala/sys/process/ProcessBuilder.scala
index 84a176b26d..0e34e7be1b 100644
--- a/src/library/scala/sys/process/ProcessBuilder.scala
+++ b/src/library/scala/sys/process/ProcessBuilder.scala
@@ -81,12 +81,6 @@ trait ProcessBuilder extends Source with Sink {
* redirections (implemented as pipes) from masking useful process error codes.
*/
def hasExitValue: Boolean
-
- /** Constructs a new builder which runs this command with all input/output threads marked
- * as daemon threads. This allows the creation of a long running process while still
- * allowing the JVM to exit normally.
- */
- def daemonized(): ProcessBuilder
}
object ProcessBuilder extends ProcessBuilderImpl {
diff --git a/src/library/scala/sys/process/ProcessBuilderImpl.scala b/src/library/scala/sys/process/ProcessBuilderImpl.scala
index 4f6d5211f3..58f06e1039 100644
--- a/src/library/scala/sys/process/ProcessBuilderImpl.scala
+++ b/src/library/scala/sys/process/ProcessBuilderImpl.scala
@@ -81,7 +81,7 @@ private[process] trait ProcessBuilderImpl {
override def canPipeTo = true
}
- private[process] abstract class AbstractBuilder extends ProcessBuilder with Sink with Source {
+ private[scala] abstract class AbstractBuilder extends ProcessBuilder with Sink with Source {
protected def toSource = this
protected def toSink = this
@@ -114,6 +114,13 @@ private[process] trait ProcessBuilderImpl {
def !< = run(true).exitValue()
def !<(log: ProcessLogger) = runBuffered(log, true)
+ /** Constructs a new builder which runs this command with all input/output threads marked
+ * as daemon threads. This allows the creation of a long running process while still
+ * allowing the JVM to exit normally.
+ *
+ * Note: not in the public API because it's not fully baked, but I need the capability
+ * for fsc.
+ */
def daemonized(): ProcessBuilder = new DaemonBuilder(this)
private[this] def slurp(log: Option[ProcessLogger], withIn: Boolean): String = {