summaryrefslogtreecommitdiff
path: root/src/library/scala/sys/process/Process.scala
diff options
context:
space:
mode:
authorDmitry Melnichenko <dmytro.i.am@gmail.com>2015-11-27 22:10:11 +0200
committerDmitry Melnichenko <dmytro.i.am@gmail.com>2015-12-11 21:26:14 +0200
commite3d51a131d2e3ac08fb197a32bcba8e7978a476e (patch)
tree2759945ce574c6a09d81fd20b82586895e894da8 /src/library/scala/sys/process/Process.scala
parentd5c74a245d95822c353bff514cb92e144a607967 (diff)
downloadscala-e3d51a131d2e3ac08fb197a32bcba8e7978a476e.tar.gz
scala-e3d51a131d2e3ac08fb197a32bcba8e7978a476e.tar.bz2
scala-e3d51a131d2e3ac08fb197a32bcba8e7978a476e.zip
[SI-9454] Add isAlive method into sys.process.Process trait
Diffstat (limited to 'src/library/scala/sys/process/Process.scala')
-rw-r--r--src/library/scala/sys/process/Process.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/sys/process/Process.scala b/src/library/scala/sys/process/Process.scala
index 06b9967908..0ec749e78a 100644
--- a/src/library/scala/sys/process/Process.scala
+++ b/src/library/scala/sys/process/Process.scala
@@ -26,11 +26,11 @@ import scala.language.implicitConversions
* make it possible for one to block until the process exits and get the exit value,
* or destroy the process altogether.
*
- * Presently, one cannot poll the `Process` to see if it has finished.
- *
* @see [[scala.sys.process.ProcessBuilder]]
*/
trait Process {
+ /** Returns this process alive status */
+ def isAlive(): Boolean
/** Blocks until this process exits and returns the exit code.*/
def exitValue(): Int
/** Destroys this process. */