From owner-freebsd-current Sun Jun 7 03:53:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA09862 for freebsd-current-outgoing; Sun, 7 Jun 1998 03:53:01 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from totally.damaged.org (totally.damaged.org [198.142.63.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA09799 for ; Sun, 7 Jun 1998 03:52:39 -0700 (PDT) (envelope-from simon@totally.damaged.org) Received: (from simon@localhost) by totally.damaged.org (8.8.8/8.8.8) id UAA01323; Sun, 7 Jun 1998 20:52:06 +1000 (EST) (envelope-from simon) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.3.p0.FreeBSD:980607205205:5122=_" Date: Sun, 07 Jun 1998 20:52:05 +1000 (EST) From: Simon Coggins To: John Birrell , freebsd-current@FreeBSD.ORG Subject: More problems with Threads on -current. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.3.p0.FreeBSD:980607205205:5122=_ Content-Type: text/plain; charset=us-ascii Got another one for you :) Seems with threads there is something wrong with how fcntl() works, fcntl(fd, F_SETFD, 1) doesn't work when you compile against libc_r. I've included the program that shows this. [simon@totally]:/tmp/thread/b> gcc -o t threads_test.c [simon@totally]:/tmp/thread/b> ./t Before fcntl is 0 Before fcntl is 1 [simon@totally]:/tmp/thread/b> gcc -o t threads_test.c -pthread [simon@totally]:/tmp/thread/b> ./t Before fcntl is 0 Before fcntl is 0 Regards Simon +---------------------------------------------------------------+ | Email: chaos@ultra.net.au, chaos@oz.org, simon@bofh.com.au | | http://www.ultra.net.au/~chaos Ultranet Technical Admin. | | Chaos on IRC, IRC Operator for the OzORG Network | +---------------------------------------------------------------+ --- As long as the answer is right, who cares if the question is wrong? --_=XFMail.1.3.p0.FreeBSD:980607205205:5122=_ Content-Disposition: attachment; filename="threads_test.c" Content-Transfer-Encoding: base64 Content-Description: threads_test.c Content-Type: application/octet-stream; name=threads_test.c; SizeOnDisk=296 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxmY250bC5oPgoKdm9pZCBtYWluKCkKewoJaW50 IGZkOwoJCglmZD1vcGVuKCIvZGV2L3plcm8iLCBPX1JET05MWSk7CglpZihmZDwzKQoJewoJCXBl cnJvcigib3BlbigpIik7CgkJZXhpdCgwKTsKCX0KCXByaW50ZigiQmVmb3JlIGZjbnRsIGlzICVk XG4iLCBmY250bChmZCwgRl9HRVRGRCwgMCkpOwoJZmNudGwoZmQsIEZfU0VURkQsIDEpOwoJcHJp bnRmKCJCZWZvcmUgZmNudGwgaXMgJWRcbiIsIGZjbnRsKGZkLCBGX0dFVEZELCAwKSk7CgljbG9z ZShmZCk7Cn0KCgk= --_=XFMail.1.3.p0.FreeBSD:980607205205:5122=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message