Date: Mon, 24 Mar 2003 22:30:41 +0600 From: Max Khon <fjoe@iclub.nsu.ru> To: Johan Karlsson <k@numeri.campus.luth.se> Cc: arch@freebsd.org, Sheldon Hearn <sheldonh@starjuice.net> Subject: Re: [fjoe@iclub.nsu.ru: Re: thread-safe realpath] Message-ID: <20030324223041.A96310@iclub.nsu.ru> In-Reply-To: <20030324154621.GA82437@numeri.campus.luth.se>; from k@numeri.campus.luth.se on Mon, Mar 24, 2003 at 04:46:21PM %2B0100 References: <20030324212205.A94544@iclub.nsu.ru> <20030324154621.GA82437@numeri.campus.luth.se>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, there! On Mon, Mar 24, 2003 at 04:46:21PM +0100, Johan Karlsson wrote: > > > Constantin Svintsoff has submitted thread-safe realpath() implementation > > > (implementation that does not use chdir(2)). > > > The implementation is feature-compatible with FreeBSD implementation, i.e. > > > if the last component of specified path can't be stat'ed and there is no > > > trailing slash, realpath succeeds. > > > > > > I fixed a couple of bugs in it and would like to commit it to HEAD > > > if there will be no objections. > > > > > > Test program is attached. The test simply creates two threads and calls > > > realpath() in each. If the test is compiled with truepath() #if-0'ed > > > one of the assertions fail after some time (you may need to increase > > > number of iterations if you have very fast machine, mine is Athlon 850). > > > > > > Any comments are highly appreciated. > > How does this affect PR 12244? > I've sent a patch to -audit for review a month ago and I'm about > to commit that (just doing a final make universe). > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=0+0+archive/2003/freebsd-audit/20030209.freebsd-audit I do not think that this patch is needed if Constantin's version will be committed. I plan to do this in about a week. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324223041.A96310>