diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-09-16 11:37:26 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-09-16 11:37:26 +1000 |
commit | 89dda8485809124ef343ebe0ec58ca7579c4dc4f (patch) | |
tree | ade4492f74d52b5603398cfa4463dbbf2d9c4437 /src/library/scala/sys | |
parent | e3af449ed504731d86581f8eec1f99e12526d747 (diff) | |
parent | 1b9806171940d304b41442b788717d2425764cbf (diff) | |
download | scala-89dda8485809124ef343ebe0ec58ca7579c4dc4f.tar.gz scala-89dda8485809124ef343ebe0ec58ca7579c4dc4f.tar.bz2 scala-89dda8485809124ef343ebe0ec58ca7579c4dc4f.zip |
Merge commit '1b98061' into merge/2.11.x-to-2.12.x-20140915
Diffstat (limited to 'src/library/scala/sys')
-rw-r--r-- | src/library/scala/sys/package.scala | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/library/scala/sys/package.scala b/src/library/scala/sys/package.scala index 386bd84113..e493603bc2 100644 --- a/src/library/scala/sys/package.scala +++ b/src/library/scala/sys/package.scala @@ -61,16 +61,15 @@ package object sys { def env: immutable.Map[String, String] = immutable.Map(System.getenv().asScala.toSeq: _*) /** Register a shutdown hook to be run when the VM exits. - * The newly created thread is marked as a daemon so it will not - * interfere with VM shutdown. The hook is automatically registered: - * the returned value can be ignored, but is available in case the - * Thread requires further modification. It can also be unregistered - * by calling ShutdownHookThread#remove(). + * The hook is automatically registered: the returned value can be ignored, + * but is available in case the Thread requires further modification. + * It can also be unregistered by calling ShutdownHookThread#remove(). * * Note that shutdown hooks are NOT guaranteed to be run. * * @param body the body of code to run at shutdown * @return the Thread which will run the shutdown hook. + * @see [[scala.sys.ShutdownHookThread]] */ def addShutdownHook(body: => Unit): ShutdownHookThread = ShutdownHookThread(body) |