-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Theo Van Dinter writes:
> On Thu, Apr 15, 2004 at 03:20:08PM -0700, Justin Mason wrote:
> > How's about spamd dies at startup -- before even forking -- if the
> > options *would* require Storable, but it's not installed? (basically
>
> Already done. ;) The code looks like:
>
> # If we're going to be switching users in check(), let's backup the
> # fresh configuration now for later restoring ...
> my %conf_backup = ();
> if ($setuid_to_user) {
> $spamtest->copy_config(undef, \%conf_backup) ||
> die "error returned from copy_config, no Storable module?\n";
> }
>
> # Fork off our children.
> for ( 1 .. $childlimit ) {
> spawn();
> }
Nifty -- but that's post-daemonize. Hence stderr will be /dev/null...
- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Exmh CVS
iD8DBQFAfwulQTcbUG5Y7woRAhvTAKDTmg/DCzzzPtaxAOxwokOTBo2EogCgqMlj
SRjoDlSJQYDhRFvjZoWLGfA=
=YWcy
-----END PGP SIGNATURE-----