Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2005 14:43:52 +0200
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        Max Okumoto <okumoto@ucsd.edu>
Cc:        Giorgos Keramidas <keramida@freebsd.org>
Subject:   Re: cvs commit: src/usr.bin/make job.c
Message-ID:  <20050519124351.GA24413@eddie.nitro.dk>
In-Reply-To: <hf1x848rtx.fsf@multivac.sdsc.edu>
References:  <200505121545.j4CFjENu078768@repoman.freebsd.org> <20050512180743.6z1h22fldwksgw4w@netchild.homeip.net> <hfbr7ge2gu.fsf@multivac.sdsc.edu> <42897003.2090005@ucsd.edu> <20050517144446.gibxprydoosokw0k@netchild.homeip.net> <428A23A2.5080108@ucsd.edu> <20050518100548.h8r4qc59c08swoog@netchild.homeip.net> <hfacmt7wpj.fsf@multivac.sdsc.edu> <20050518141456.GB40240@orion.daedalusnetworks.priv> <hf1x848rtx.fsf@multivac.sdsc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--VbJkn9YxBvnuCH5J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2005.05.18 08:41:14 -0700, Max Okumoto wrote:

> Alexander suggested that I replace that code with
>     mkdtemp(template)
>     mkfifo(tempalte + "/fifo")
>=20
> Which removed alot of the code duplication, but added the race
> back in. [...]

Ehh, where is the race?  mkdtemp creates a unique directory with
permissions 0700 so nobody else can race make(1) to the fifo in the
temporary... or am I missing something?

--=20
Simon L. Nielsen

--VbJkn9YxBvnuCH5J
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCjIoHh9pcDSc1mlERAka1AJ0RQkmhA/tH0QFM4kSyuw80H4cdpQCgtV7f
idxRSQv7KRdi9RTmXJPUym8=
=PY9+
-----END PGP SIGNATURE-----

--VbJkn9YxBvnuCH5J--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050519124351.GA24413>