Skip to content
Browse files

Allow subclasses to override exit correctly

  • Loading branch information...
1 parent cd18afd commit 07eb1a67d6a902b4a77c07405ea52203bb91eee7 Robert Newson committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/scala/scalang/node/ProcessAdapter.scala
View
6 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 07eb1a6

Please sign in to comment.
Something went wrong with that request. Please try again.