[Refdb-cvs] CVS: refdb/src refdbib.c,1.41.2.10,1.41.2.11
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2006-02-13 21:34:09
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2983 Modified Files: Tag: Release_0_9_5_stable refdbib.c Log Message: make_dbib(): close socket when bailing out; removed leftover send_status() call; send send_xml_data() output to stderr Index: refdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbib.c,v retrieving revision 1.41.2.10 retrieving revision 1.41.2.11 diff -u -U2 -r1.41.2.10 -r1.41.2.11 --- refdbib.c 8 Feb 2006 20:45:25 -0000 1.41.2.10 +++ refdbib.c 13 Feb 2006 21:33:54 -0000 1.41.2.11 @@ -671,4 +671,5 @@ free(slvals.outbuffer); close_outfile(specfilefp); + close(slvals.n_sockfd); n_broken_pipe = 0; return 1; @@ -724,5 +725,5 @@ close_outfile(specfilefp); - send_status(slvals.n_sockfd, 0, TERM_NO); +/* send_status(slvals.n_sockfd, 0, TERM_NO); */ cs_status = read_status(slvals.n_sockfd); @@ -738,7 +739,8 @@ } /* end if (n_send_stylespec) */ + byte_written = 0; /* run phases 1 through 4 of client/server protocol */ - n_result = send_xml_data(fp_infile, pagerfp, stderr, slvals.n_sockfd, &byte_written); + n_result = send_xml_data(fp_infile, /*pagerfp*/stderr, stderr, slvals.n_sockfd, &byte_written); if (n_result) { @@ -777,5 +779,5 @@ we do not want to write the terminating \0 */ if (!n_broken_pipe) { - fwrite(inbuffer, sizeof(char), numbyte-num_trailz, pagerfp); + fwrite(inbuffer, sizeof(char), numbyte-num_trailz, /*pagerfp*/stderr); } /* printf("%s", inbuffer); */ |