From owner-freebsd-hackers Wed Jul 28 7: 5: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from prontomail9.prontomail.com (prontomail9.prontomail.com [209.185.149.109]) by hub.freebsd.org (Postfix) with ESMTP id E65A014F25 for ; Wed, 28 Jul 1999 07:04:55 -0700 (PDT) (envelope-from avi@imail.ru) Received: from avi (209.185.149.237) by prontomail9.prontomail.com (NPlex 2.0.123) for hackers@freebsd.org; Wed, 28 Jul 1999 07:00:03 -0700 From: "Andrei Iltchenko" Message-Id: <199907280700213@avi.imail.ru> Date: Wed, 28 Jul 1999 18:06:47 +0400 X-Priority: Normal Content-Type: text/plain; charset=koi8-r To: hackers@freebsd.org Subject: POSIX threads question X-Mailer: Web Based Pronto Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 - why I am still having a problem calling fprintf(stderr, ... from multiple threads, the output is simply not written until I make a socond or a third call to fprintf. I have disabled buffering for stderr with setvbuf. Thank you in advance. ------------------------------------------- Sent by InfoArt iMail http://www.infoart.ru; http://www.stars.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message