Date: Fri, 10 Jan 2003 14:41:07 -0800 (PST) From: Richard Sharpe <rsharpe@richardsharpe.com> To: <freebsd-hackers@freebsd.org> Subject: What prevents there from being a race with open(...,O_CREAT | O_EXCL,...) Message-ID: <Pine.LNX.4.33.0301101437330.2747-100000@ns.aus.com>
next in thread | raw e-mail | index | archive | help
Hi, In looking at vn_open, I see that it calls namei and then a little while later calls VOP_CREATE. If the user did open(..., ... O_CREAT | O_EXCL, ...), what prevents a race where one process discovers that the name doesn't already exist but another gets in and creates the name? Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0301101437330.2747-100000>