first stab at simple mailer

Jan Grant jan.grant at
Thu Mar 22 11:56:47 PDT 2007

On Wed, 21 Mar 2007, Simon 'corecode' Schubert wrote:

> Matthew Dillon wrote:
> >     * Wrap calloc, malloc, strdup, etc.
> I wouldn't know how to gracefully handle failures, especially concerning queue
> business etc.

An explicit "log and abort" is a valid exception-handling strategy, 
especially since you've stated that this is mostly a simple cutdown 
mailer. If you can't think of any other way to handle those kinds of 
errors, it's not a failure to crash out in a controlled way (and better 
than the "traditional" C approach* :-) )


* "never check for an error you don't know how to handle"

jan grant, ISYS, University of Bristol.
Tel +44 (0)117 3317661
Semantic rules, OK?

More information about the Kernel mailing list