#6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 0614cf0..8f611a3 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -144,7 +144,7 @@
 
     def exithook(self):
         "override for specific exit action"
-        os._exit()
+        os._exit(0)
 
     def debug(self, *args):
         if not self.debugging: