Re: gnupg compiled
On Fri, 07 Jan 2000, Roland McGrath wrote:
> > Well, here is what I did in exim, and you should do similar for GPG:
> >
> > if (setrlimit(RLIMIT_CORE, &rl) < 0)
> > {
> > #ifdef __GNU__
> > if (errno != ENOSYS && errno != ENOTSUP)
> > #endif
> > log_write(0, LOG_MAIN|LOG_PANIC, "setrlimit failed: %s", strerror(errno));
> > }
>
> I don't think this needs to be #ifdef'd, just as a generic thing.
Hmm, I'm a bit confused. Look at this code:
void
disable_core_dumps()
{
#ifndef HAVE_DOSISH_SYSTEM
#ifdef HAVE_SETRLIMIT
struct rlimit limit;
limit.rlim_cur = 0;
limit.rlim_max = 0;
if( !setrlimit( RLIMIT_CORE, &limit ) )
return;
if( errno != EINVAL )
log_fatal(_("can't disable core dumps: %s\n"), strerror(errno) );
#endif
if( !opt.quiet )
log_info(_("WARNING: program may create a core file!\n"));
#endif
}
Do you mean as long setrlimit is not really implemented this
disable_core_dumps should run in the same way like on dosish systems?
That means never!
wagi
--
Mit freundlichen GNUessen (__)
Daniel Wagner oo )
email: wagi@gmx.ch |_/\
(RSA)PGP - Key auf Anfrage, (RSA)PGP - Key on request
Reply to: