[hashcash] hashcash-sendmail daemonizes better.

  • From: Kyle Hasselbacher <kyle@xxxxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Fri, 11 Jun 2004 10:37:41 -0500

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

About a month ago, the environment around my hashcash-sendmail changed, and
it started getting SIGHUP from an external source.  It took me a while to
even notice it, but it's lead me to two changes:

1. I now use SIGUSR1 to notify myself of new queue items instead of SIGHUP.

2. I call setpgrp() and setsid() to really get the parent process off my
back after forking.  If that doesn't work, it whines in the log.

I encourage current users to upgrade, but if you're not having a problem,
don't worry about it.
- -- 
Kyle Hasselbacher | Ships are safe in harbor,
kyle@xxxxxxxxxxx  | but they were never meant to stay there.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAydHF10sofiqUxIQRAmmPAKDvzAux06FJtAvb9DBv/aOlnsUcxQCgvVZO
lLJIQl90XBbmxGDOq4ZaWcs=
=pKHa
-----END PGP SIGNATURE-----

Other related posts: