From ec7922f7b2a8c7b36bbf314d9eb320b839dd6677 Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@cloudius-systems.com>
Date: Wed, 6 Feb 2013 15:04:01 +0100
Subject: [PATCH] implement exit()

---
 runtime.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/runtime.cc b/runtime.cc
index 1018caf2a..a26bc9b92 100644
--- a/runtime.cc
+++ b/runtime.cc
@@ -364,5 +364,11 @@ int pclose(FILE *stream)
 	return 0;
 }
 
+void exit(int status)
+{
+    debug(fmt("program exited with status %d") % status);
+    abort();
+}
+
 char* __environ_array[1];
 char** environ = __environ_array;
-- 
GitLab