diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-11 22:36:31 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-11 22:36:31 -0500 |
commit | 984a5f1f0f27d191695feeb3410968f2f35f8fc8 (patch) | |
tree | 56fd09257ebf8ff020fbb6a86c1ca529fa548da7 /stage1/Stage1Lib.scala | |
parent | b408b441569dc165f4d41b048ff64253695a491d (diff) | |
download | cbt-984a5f1f0f27d191695feeb3410968f2f35f8fc8.tar.gz cbt-984a5f1f0f27d191695feeb3410968f2f35f8fc8.tar.bz2 cbt-984a5f1f0f27d191695feeb3410968f2f35f8fc8.zip |
Split ClassLoader classes into separate files and a few fixes
Diffstat (limited to 'stage1/Stage1Lib.scala')
-rw-r--r-- | stage1/Stage1Lib.scala | 8 |
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 } } |