aboutsummaryrefslogtreecommitdiff
path: root/stage1/Stage1Lib.scala
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2016-03-12 00:09:26 -0500
committerJan Christopher Vogt <oss.nsp@cvogt.org>2016-03-12 00:09:26 -0500
commitb143c01a2e180b647eb27338cb7302aa38ef10c6 (patch)
tree9608d8ff36a80ac68f968aea8fcc31e4dae4150f /stage1/Stage1Lib.scala
parentfae67dc6124a12710599ede6e091e2de236079aa (diff)
parent55fff670befc97a871cf0f85c65764e108f3d3c1 (diff)
downloadcbt-b143c01a2e180b647eb27338cb7302aa38ef10c6.tar.gz
cbt-b143c01a2e180b647eb27338cb7302aa38ef10c6.tar.bz2
cbt-b143c01a2e180b647eb27338cb7302aa38ef10c6.zip
Merge pull request #78 from cvogt/chris
Chris
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r--stage1/Stage1Lib.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/stage1/Stage1Lib.scala b/stage1/Stage1Lib.scala
index 1ad3030..67ae049 100644
--- a/stage1/Stage1Lib.scala
+++ b/stage1/Stage1Lib.scala
@@ -190,6 +190,11 @@ class Stage1Lib( val logger: Logger ) extends BaseLib{
}
def trapExitCode( code: => Unit ): ExitCode = {
+ /*
+ Doesn't seem to work reliably. Seems like the Security manager is not always
+ reset properly. Maybe some non-thread-safety issue or some Nailgun interaction.
+
+
val old: Option[SecurityManager] = Option(System.getSecurityManager())
try{
val securityManager = new SecurityManager{
@@ -217,6 +222,9 @@ class Stage1Lib( val logger: Logger ) extends BaseLib{
} finally {
System.setSecurityManager(old.getOrElse(null))
}
+ */
+ code
+ ExitCode.Success
}
}