groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Re: MSVC Port--Issue with groff Hanging


From: Werner LEMBERG
Subject: Re: [Groff] Re: MSVC Port--Issue with groff Hanging
Date: Wed, 03 Dec 2003 15:54:58 +0100 (CET)

>  o  Increasing the size of the buffer in the call to _pipe(), e.g.,
>     using a value greater than BUFSIZ (512 in Win32, I think) in
>
>          _pipe(pdes, BUFSIZ, O_BINARY | O_NOINHERIT)
>
>     allows a lesser argument to the 'o' option to work without
>     hanging, as if the buffer is more likely to be emptied by the
>     reader.  Values greater than 64k seem to be ignored, so this
>     hack won't work at all for any but the smallest files.

I've just seen the following in nonposix.h, defined for MSVC:

  #define pipe(pfd)  _pipe((pfd), 0, _O_BINARY|_O_NOINHERIT)

This disables buffering completely.  Does this work?


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]