[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 'svn diff' and 'svn log' not stopping when pipe is closed

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-12-12 10:53:13 CET

Sander Striker wrote:

>>From: Branko Cibej [mailto:brane@xbc.nu]
>>Sent: Thursday, December 12, 2002 2:07 AM
>>
>>
>
>
>
>>Nuutti Kotivuori wrote:
>>
>>
>>
>>>** Using 'apr_file_printf'
>>>
>>>Instead of printing with 'printf' directly, we can start using
>>>'apr_file_open_stdout' and running 'apr_file_printf' on
>>>it. 'apr_file_printf' will return an error if the write results in
>>>EPIPE. So if we check all the return values of apr_file_printf calls,
>>>we can detect EPIPE at any point.
>>>
>>>
>>>
>>>
>>apr_file_printf will not do the required text-mode stream translation on
>>Windows. -1.
>>
>>
>
>Would fixing/extending apr_file_printf to do so help anything?
>
>

It would involve actually doing something with the APR_BINARY flag,
which is not used anywhere now. That means touching most of the file I/O
functions in APR. I don't think its worth going to this trouble just
because SVN doesn't deal elegnatly with piped stdout.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 12 10:54:03 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.