Skip to main content
1 of 8
s3lph
  • 1.6k
  • 2
  • 12
  • 17

Challenge: Write a piece of code that quits itself

I'm searching (am I?) for a piece of code that quits immediately - in an absolutely unconventional way.

This means not: System.exit((int) 'A'); //java

It might mean: (python)

#!/bin/python3 # unix only, might work on windows def exit(): import os os.system("killall python3") # Windows addon os.system("taskkill /im python.exe /f") # or whatever filename python@windows has exit() 

Most upvoted answer wins! All languages, all architectures

s3lph
  • 1.6k
  • 2
  • 12
  • 17