This is the mail archive of the
mailing list for the Cygwin project.
Re: setvbuf / [ANNOUNCEMENT] Updated: cygwin-1.5.5-1
- From: Jan Jaeger <pa3efu at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 1 Oct 2003 11:11:39 -0700 (PDT)
- Subject: Re: setvbuf / [ANNOUNCEMENT] Updated: cygwin-1.5.5-1
The attached test case does should display test2 wait
five seconds and then display test3, instead on my
system it issues test2 and test3 simultanuously.
--- Christopher Faylor <firstname.lastname@example.org> wrote:
> On Wed, Oct 01, 2003 at 10:49:08AM -0700, Jan Jaeger
> >I have downloaded the latest (I think?) version of
> cygwin, but my
> >problem still persists. uname -a reports:
> CYGWIN_NT-5.1 jj
> >1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
> unknown Cygwin. The 0.94
> >does not look quite right to me is this correct?
> If so, which ftp site
> >would contain a 1.xx?
> setup.exe downloads the latest version of
> everything. This is confirmed
> by the 1.5.5 in your version above. Since I
> announced this new version
> 10+ days ago, it is a safe bet that all of the
> mirror sites listed by
> setup.exe have cygwin 1.5.5.
> The test case that you previously provided works as
> expected. If you
> are having other problems, you'll need to clarify
> them with a new test
> Please use the resources at cygwin.com rather than
> sending personal email.
> Special for spam email harvesters: send email to
> and be permanently blocked from mailing lists at
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
static pthread_attr_t logger_attr;
static pthread_cond_t logger_cond;
static pthread_mutex_t logger_lock;
static pthread_t logger_tid;
static int pipefd;
void *logger_thread(void *arg)
setvbuf(stdout, NULL, _IOLBF, 0); // *** THIS DOES NOT WORK PROPERLY ***
n = read(pipefd, buffer, sizeof(buffer));
buffer[n] = '\0';
pthread_create (&logger_tid, &logger_attr, logger_thread, NULL);
//setvbuf(stdout, NULL, _IOLBF, 0);
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html