DragonFly kernel List (threaded) for 2007-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: first stab at simple mailer
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* :-) )
jan
* "never check for an error you don't know how to handle"
--
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661 http://ioctl.org/jan/
Semantic rules, OK?
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]