File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,15 @@ object EventLoop extends ExecutionContextExecutor {
44
44
// Schedule loop execution after main ends
45
45
scalanative.runtime.ExecutionContext .global.execute(
46
46
new Runnable {
47
- def run (): Unit = EventLoop .run()
47
+ def run (): Unit = {
48
+ val returnCode = EventLoop .run()
49
+ if (returnCode != 0 ) {
50
+ Zone { implicit z =>
51
+ System .err.println(fromCString(uv_err_name(returnCode)))
52
+ }
53
+ System .exit(returnCode)
54
+ }
55
+ }
48
56
}
49
57
)
50
58
@@ -57,11 +65,12 @@ object EventLoop extends ExecutionContextExecutor {
57
65
t.printStackTrace()
58
66
}
59
67
60
- def run (mode: Int = UV_RUN_DEFAULT ): Unit = {
68
+ def run (mode: Int = UV_RUN_DEFAULT ): Int = {
61
69
var continue = 1
62
70
while (continue != 0 ) {
63
71
continue = uv_run(loop, mode)
64
72
}
73
+ continue
65
74
}
66
75
}
67
76
Original file line number Diff line number Diff line change 1
- sbt.version =1.3.4
1
+ sbt.version =1.3.4
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.4.0-M2" )
2
2
addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 2.0.0" )
3
- addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.8.1" )
3
+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.8.1" )
You can’t perform that action at this time.
0 commit comments