Permalink
Browse files

Allow subclasses to override exit correctly

  • Loading branch information...
1 parent c7d5d3f commit e6c41a7e01104848f3d8ede765e3dbb4b5d25a77 Robert Newson committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/scala/scalang/node/ProcessAdapter.scala
@@ -42,7 +42,7 @@ abstract class ProcessHolder(ctx : ProcessContext) extends ProcessAdapter {
} catch {
case e : Throwable =>
log.error(e, "An error occurred in actor %s", process)
- exit(e.getMessage)
+ process.exit(e.getMessage)
}
}
}
@@ -56,7 +56,7 @@ abstract class ProcessHolder(ctx : ProcessContext) extends ProcessAdapter {
} catch {
case e : Throwable =>
log.error(e, "An error occurred during handleExit in actor %s", this)
- exit(e.getMessage)
+ process.exit(e.getMessage)
}
}
})
@@ -69,7 +69,7 @@ abstract class ProcessHolder(ctx : ProcessContext) extends ProcessAdapter {
} catch {
case e : Throwable =>
log.error(e, "An error occurred during handleMonitorExit in actor %s", this)
- exit(e.getMessage)
+ process.exit(e.getMessage)
}
}
})

0 comments on commit e6c41a7

Please sign in to comment.