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

I created my-sendmail, which is a wrapper.  It reads what you give it,
forks, and exits, so you don't have to wait for it (it can take a long
time).

I tell mutt to use my-sendmail, and it's fine.

I tell tmda that SENDMAIL_PROGRAM is my-sendmail (because I want challenges
to go through it).  I tell mutt to use tmda-sendmail.  Now, mutt ends up
waiting for my-sendmail to finish (apparently) because tmda-sendmail waits
for it.  What is it waiting for?

I tried a few things.

* fork() again and do the work in the grandchild.  The parent waits for the
child, which exits immediately.

* close stdin, stderr, stdout after the fork.

* open my sub-process AFTER the fork instead of before.

I'm not subscribed, so please Cc: replies to me.  Thanks in advance.
- -- 
Kyle Hasselbacher | Incoming fire has the right of way.
[EMAIL PROTECTED]  |            -- Murphy's laws of combat.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFARRKp10sofiqUxIQRAtAJAJ9LJ4gQZjkRVIlYpWwYwe8cScAD1wCgm6EN
yoYa6d74WKfoSOWGgxtq6vQ=
=ivdj
-----END PGP SIGNATURE-----
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to