Date: Sun, 07 Jun 1998 20:52:05 +1000 (EST) From: Simon Coggins <chaos@oz.org> To: John Birrell <jb@cimlogic.com.au>, freebsd-current@FreeBSD.ORG Subject: More problems with Threads on -current. Message-ID: <XFMail.980607205205.chaos@oz.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980607205205.chaos>