[4069] in testers
Re: /bin/athena/tcsh "unlimit" fails
daemon@ATHENA.MIT.EDU (Dan Winship)
Thu May 20 17:18:21 1999
Message-Id: <199905202118.VAA955597@antharia.mit.edu>
To: "Mark W. Eichin" <eichin@opus.mit.edu>
Cc: Marc Horowitz <marc@MIT.EDU>
Cc: testers@MIT.EDU
In-Reply-To: Your message of "Wed, 19 May 1999 20:46:20 EDT."
<199905200046.UAA04414@opus.mit.edu>
Date: Thu, 20 May 1999 17:18:12 -0400
From: Dan Winship <danw@MIT.EDU>
> % unlimit
> unlimit: datasize: Can't set limit
> unlimit: stacksize: Can't set limit
> unlimit: memoryuse: Can't set limit
> unlimit: vmemoryuse: Can't set limit
> unlimit: descriptors: Can't set limit
...
> Suggestions:
> Marc points out that this came up on tcsh-dev within the last
> couple of weeks; apparently the author doesn't have access to an Irixi
> 6.5 machine, but may be able to fix the problem if he does...
The problem seems to be that sys/resource.h defines RLIM_INFINITY to
2^31-1 if you're using o32 and 2^63-1 if you're using n32, but
setrlimit doesn't seem to be aware of this and fails (only on some
limits?) if you set rlim_cur to the n32 RLIM_INFINITY. setrlimit64
doesn't deal either.
Bob, can you report this to them?
-- Dan