]> diplodocus.org Git - nmh/commit
smtp.c: Use read-end of pipe, not random integer.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 7 Sep 2017 08:57:11 +0000 (09:57 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 7 Sep 2017 08:57:11 +0000 (09:57 +0100)
commit8c2d4ff84c4db1eb59d3a3fb007803f82c4906b9
tree8ea9e2e34716e5e529036bf5826121402d1a5e34
parentf6d438b5e08d12eacb62f93a8ce1a6c22d2ae16d
smtp.c: Use read-end of pipe, not random integer.

Instead of `pdi[0]' the array of two elements was being indexed by `i'.
That is typically zero so everything works, but can be up to five
depending how many times fork(2) failed before succeeding.  Fixes
e65127948.
mts/smtp/smtp.c