Skip to content

Commit 562e9ac

Browse files
author
Oron Port
committed
include missing oslib dependency and update its version.
update tool destruction update airframe, munit, scalafmt versions
1 parent 74804e3 commit 562e9ac

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.9.9
1+
version = 3.9.10
22
runner.dialect = scala3
33

44
maxColumn = 100

build.sbt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ lazy val platforms = project
135135
lazy val dependencies =
136136
new {
137137
private val scodecV = "1.2.4"
138-
private val munitV = "1.1.1"
139-
private val airframelogV = "2025.1.18"
140-
private val oslibV = "0.9.2"
138+
private val munitV = "1.2.0"
139+
private val airframelogV = "2025.1.19"
140+
private val oslibV = "0.11.5"
141141
private val scallopV = "5.2.0"
142142
private val upickleV = "4.3.2"
143143

@@ -153,7 +153,8 @@ lazy val commonDependencies = Seq(
153153
dependencies.scodec,
154154
dependencies.munit,
155155
dependencies.airframelog,
156-
dependencies.scallop
156+
dependencies.scallop,
157+
dependencies.oslib
157158
)
158159

159160
// SETTINGS

docs/getting-started/hello-world/scala-project/.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.9.8
1+
version = 3.9.10
22
runner.dialect = scala3
33

44
maxColumn = 100

lib/src/main/scala/dfhdl/tools/toolsCore/Tool.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ trait Tool:
158158
// setup an interrupt handler to destroy the process
159159
val handler = new sun.misc.SignalHandler:
160160
def handle(sig: sun.misc.Signal): Unit =
161-
process.destroy()
162-
process.destroyForcibly()
161+
process.destroy(shutdownGracePeriod = 100)
163162
println(s"\n${toolName} interrupted by user")
164163
sun.misc.Signal.handle(new sun.misc.Signal("INT"), handler)
165164
// wait for the process to finish

0 commit comments

Comments
 (0)