HI everybody.
I'm having a problem writing a multi-threaded application.
As I understand from the mans, calls to read and write are synchronized through
file-locks. Having looked through the source for libc_r I noticed that calls to
printf and fprintf are also synchronized.
The question is - w
HI everybody.
I'm having a problem writing a multi-threaded application.
As I understand from the mans, calls to read and write are synchronized through
file-locks. Having looked through the source for libc_r I noticed that calls to printf
and fprintf are also synchronized.
The question is -
man 3 setvbuf
- ad
> Hi there,
>
> I have written a multithreaded application.
> In which, I have redirected stdin, stdout and stderr to some files.
>
> Does anybody know why if I make a call to fprintf family of functions, I get
> nothing in the output files, until I call fflush?
To Unsubscri
Files are block buffered not line buffered.
Switch on hot piping (sorry, don't know how to), or wait until you have
written 64kb, of flush more often.
Nick
On Tue, 20 Jul 1999, Andrei Iltchenko wrote:
> Hi there,
>
> I have written a multithreaded application.
> In which, I have redirecte
Hi there,
I have written a multithreaded application.
In which, I have redirected stdin, stdout and stderr to some files.
Does anybody know why if I make a call to fprintf family of functions, I get
nothing in the output files, until I call fflush?
Thank you in advance.
---
man 3 setvbuf
- ad
> Hi there,
>
> I have written a multithreaded application.
> In which, I have redirected stdin, stdout and stderr to some files.
>
> Does anybody know why if I make a call to fprintf family of functions, I get nothing
>in the output files, until I call fflush?
To Unsubscri
Files are block buffered not line buffered.
Switch on hot piping (sorry, don't know how to), or wait until you have
written 64kb, of flush more often.
Nick
On Tue, 20 Jul 1999, Andrei Iltchenko wrote:
> Hi there,
>
> I have written a multithreaded application.
> In which, I have redirect
Hi there,
I have written a multithreaded application.
In which, I have redirected stdin, stdout and stderr to some files.
Does anybody know why if I make a call to fprintf family of functions, I get nothing
in the output files, until I call fflush?
Thank you in advance.
--
8 matches
Mail list logo