-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Duncan Findlay wrote:

> Silly question, but are you sure it didn't just background itself like
> it's supposed to do with the daemonize option? (I mean did you check
> that the process isn't still running with "ps aux" (or similar)) Did
> you try using spamc to send it a message anyways?

I tried both, and it definitely is not running. However I debugged some
more at Justin's suggestion of strace etc. It seems that this only
happens when I use BayesStore::MySQL or ::SQL, but not with ::DBM.
(Having the AWL in the DB does not influence the outcome).

The last sign of life in the spamd child (as seen by strace):

read(7, "", 8192)                       = 0
fcntl64(7, F_SETFL, O_RDWR)             = 0
write(7, "\1\0\0\0\1", 5)               = -1 EPIPE (Broken pipe)
- --- SIGPIPE (Broken pipe) @ 0 (0) ---

"7" is the Mysql connection opened in the spamd parent process. If
running without --daemonize, all initialization operations (not only DB)
happen in the spamd parent process. With --daemonize, this happens in
one of the child processes where it then SIGPIPEs on the first use of MySQL.

If anybody is interested, I can send the full strace log (maybe it
shouldn't go over the list?).

- -- Matthias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF5nSBxbHw2nyi/okRAvxHAKDMZ1LkpIfFbKXs06mPdeGWJngnewCcD5Wm
5YqVjYydKrj3oHxchgY/HlA=
=nJA7
-----END PGP SIGNATURE-----

Reply via email to