Sorry Aaron, I don't know what could be causing the problem.  However, 
the fact that there are fewer  write()s  when the ouput is a file is 
to be expected.  Output is "block-buffered" if the output is not a 
terminal, which means it saves up 4096 bytes before writing.  If the 
output is a tty, the data is "line-buffered", which means it is 
written after every '\n'.

There *shouldn't* be a need to flush stdout unless the program exits 
abnormally (e.g. segfaults).  Is the resulting file a multiple of 
4096 bytes long?  What happens if you simply pipe the output through  
more/less?  Is it still truncated?

Good luck!
Lachlan

On Saturday 05 April 2003 07:21, Aaron Bush wrote:

> If i run htsearch from the command line and allow the output to go
> to the screen the results appear complete and proper.  If i run
> htsearch from the command line and redirect the output to a file
> via ">/tmp/pg" or from a browser via apache then the results will
> be truncated.  I have ran strace against htsearch with output to
> the screen and to a file and there are clearly some missing
> write()'s.



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to