[illumos-Developer] webrev: 374 cron should send more useful mail

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Tue Oct 26 04:32:54 PDT 2010


Aram H??v??rneanu <aram.h at mgk.ro> wrote:

> On Tue, Oct 26, 2010 at 12:00 PM, Joerg Schilling
> <Joerg.Schilling at fokus.fraunhofer.de> wrote:
> > strdup() is a really bad idea!
> >
> > Better use xstrdup()
>
> Why? I don't think cron(1) is an example of an application that should
> abort when it can't allocate memory. The application should recover,
> which in this case, it does.

If you are sore that all other cases where cron mallocs space are hanles this 
way.... OK

But note that using strdup() would probably result in cron coredumps that are 
not tolerable.

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the Developer mailing list