v1.8.21
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.system / exitProcess

exitProcess

JVM
Native
1.0
fun exitProcess(status: Int): Nothing
(JVM source) (Native source)

Terminates the currently running process.

Parameters

status - serves as a status code; by convention, a nonzero status code indicates abnormal termination.

Return This method never returns normally.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains