From c663f524ffa4a5ca676eb1f1d49813698376a543 Mon Sep 17 00:00:00 2001 From: Chris Hobbs Date: Thu, 4 Jan 2018 12:10:14 +0000 Subject: [PATCH] Add Process.exit stub on windows (#5524) This stub allows the ::exit function to compile on win32. --- src/windows_stubs.cr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/windows_stubs.cr b/src/windows_stubs.cr index 05a25c5664e4..add3ad0d708e 100644 --- a/src/windows_stubs.cr +++ b/src/windows_stubs.cr @@ -53,3 +53,9 @@ abstract class IO end end end + +class Process + def self.exit(status = 0) + LibC.exit(status) + end +end