]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unix/unix.factor
unix: don't hack _exit to have a terminating effect; just use FUNCTION:
[factor.git] / basis / unix / unix.factor
index e747e4843393518605288bfe0342ffb92644f886..dbbfbcce6e2ba5488fa5c69d292752f350f9a74c 100644 (file)
@@ -50,9 +50,7 @@ HOOK: open-file os ( path flags mode -- fd )
 
 : close-file ( fd -- ) [ close ] unix-system-call drop ;
 
-: _exit ( status -- * )
-    #! We throw to give this a terminating stack effect.
-    int f "_exit" { int } alien-invoke "Exit failed" throw ;
+FUNCTION: int _exit ( int status ) ;
 
 M: unix open-file [ open ] unix-system-call ;