Skip to content

Commit c663f52

Browse files
authoredJan 4, 2018
Add Process.exit stub on windows (#5524)
This stub allows the ::exit function to compile on win32.
1 parent 6780faf commit c663f52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

Diff for: ‎src/windows_stubs.cr

+6
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ abstract class IO
5353
end
5454
end
5555
end
56+
57+
class Process
58+
def self.exit(status = 0)
59+
LibC.exit(status)
60+
end
61+
end

0 commit comments

Comments
 (0)
Please sign in to comment.