Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv5259/src
Modified Files:
sendmail.c
Log Message:
close the unused ends of pipes in each sendmail child generation
Index: sendmail.c
===================================================================
RCS file: /cvsroot/srvx/services/src/sendmail.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** sendmail.c 17 Jan 2003 03:18:33 -0000 1.9
--- sendmail.c 2 Jun 2003 03:24:23 -0000 1.10
***************
*** 144,147 ****
--- 144,151 ----
int res, rv;
+ /* Close the end of pipes we do not use. */
+ close(infds[0]);
+ close(outfds[1]);
+
/* Do we have any "extra" headers to send? */
extras = conf_get_data("mail/extra_headers", RECDB_STRING_LIST);
***************
*** 207,210 ****
--- 211,218 ----
const char *argv[10], *mpath;
unsigned int argc = 0;
+
+ /* Close the end of pipes we do not use. */
+ close(infds[1]);
+ close(outfds[0]);
dup2(infds[0], STDIN_FILENO);
|