Skip to content

Commit

Permalink
get rid of unsupported Signal class
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Aug 12, 2024
1 parent 51684ed commit af8d087
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import maestro.debuglog.IOSDriverLogger
import maestro.drivers.AndroidDriver
import maestro.drivers.IOSDriver
import org.slf4j.LoggerFactory
import sun.misc.Signal
import sun.misc.SignalHandler
import util.XCRunnerCLIUtils
import xcuitest.XCTestClient
import xcuitest.XCTestDriverClient
Expand All @@ -44,7 +42,6 @@ import java.util.UUID
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import kotlin.concurrent.thread
import kotlin.system.exitProcess

object MaestroSessionManager {
private const val defaultHost = "localhost"
Expand Down Expand Up @@ -101,7 +98,6 @@ object MaestroSessionManager {
session.close()
}
})
Signal.handle(CustomSignalHandler.suspendSignal, CustomSignalHandler())

return block(session)
}
Expand Down Expand Up @@ -354,16 +350,4 @@ object MaestroSessionManager {
maestro.close()
}
}

private class CustomSignalHandler() : SignalHandler {
override fun handle(signal: Signal) {
when (signal) {
suspendSignal -> exitProcess(0)
}
}

companion object {
val suspendSignal = Signal("TSTP")
}
}
}

0 comments on commit af8d087

Please sign in to comment.