worked around getrlimit bug