greyreader() shouldn't return, so tell us if it does
authorphessler <phessler@openbsd.org>
Fri, 11 Jul 2008 01:40:50 +0000 (01:40 +0000)
committerphessler <phessler@openbsd.org>
Fri, 11 Jul 2008 01:40:50 +0000 (01:40 +0000)
ok beck@, reyk@

libexec/spamd/grey.c

index c23b4b6..f861b6f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: grey.c,v 1.41 2007/11/03 19:16:07 beck Exp $  */
+/*     $OpenBSD: grey.c,v 1.42 2008/07/11 01:40:50 phessler Exp $      */
 
 /*
  * Copyright (c) 2004-2006 Bob Beck.  All rights reserved.
@@ -1190,6 +1190,7 @@ greywatcher(void)
                close(pfdev);
                setproctitle("(%s update)", PATH_SPAMD_DB);
                greyreader();
+               syslog_r(LOG_ERR, &sdata, "greyreader failed (%m)");
                /* NOTREACHED */
                _exit(1);
        }