1.1 --- a/lib/sys.py Thu Nov 10 18:19:17 2016 +0100
1.2 +++ b/lib/sys.py Thu Nov 10 18:49:15 2016 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 System functions and objects.
1.6
1.7 -Copyright (C) 2008, 2012, 2014 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2008, 2012, 2014, 2016 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,6 +19,8 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 +from native import _exit
1.17 +
1.18 # Placeholders for run-time data.
1.19
1.20 stdin = file()
1.21 @@ -36,6 +38,6 @@
1.22 # Functions to be implemented natively.
1.23
1.24 def exit(status=0):
1.25 - pass
1.26 + _exit(int(status))
1.27
1.28 # vim: tabstop=4 expandtab shiftwidth=4