Skip to content

Commit

Permalink
Add Process.exit stub on windows (#5524)
Browse files Browse the repository at this point in the history
This stub allows the ::exit function to compile on win32.
  • Loading branch information
RX14 committed Jan 4, 2018
1 parent 6780faf commit c663f52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/windows_stubs.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ abstract class IO
end
end
end

class Process
def self.exit(status = 0)
LibC.exit(status)
end
end

0 comments on commit c663f52

Please sign in to comment.