Skip to content

Commit

Permalink
sancheck: import resource inside of the posix check
Browse files Browse the repository at this point in the history
This avoids a crash on windows
  • Loading branch information
richo committed May 10, 2015
1 parent dc630d0 commit c4b72a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/check-sanitycheck.py
Expand Up @@ -13,7 +13,6 @@
import os
import sys
import functools
import resource

STATUS = 0

Expand All @@ -37,6 +36,7 @@ def inner():

@only_on(('linux', 'darwin', 'freebsd', 'openbsd'))
def check_rlimit_core():
import resource
soft, hard = resource.getrlimit(resource.RLIMIT_CORE)
if soft > 0:
error_unless_permitted('ALLOW_NONZERO_RLIMIT_CORE', """\
Expand Down

0 comments on commit c4b72a8

Please sign in to comment.