return -1 for rlimit not the rather long hex value
allow -1 for rlimit