Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!stanford.edu!rutgers!modus!gear!am!alex From: alex@am.sublink.org (Alex Martelli) Newsgroups: comp.unix.programmer Subject: Re: possible race condition? Message-ID: <1991May11.073648.1970@am.sublink.org> Date: 11 May 91 07:36:48 GMT References: <1991May9.144935.20078@ge-dab.GE.COM> <1991May9.182241.17090@robobar.co.uk> Organization: Premiata Famiglia Martelli & Figli Lines: 18 ronald@robobar.co.uk (Ronald S H Khoo) writes: ... :Part of the System V interface definition apparently guarantees the :child to execute before the parent, I hear -- I'd like chapter and :verse from someone who has a copy, if that's not too much trouble. Does not look that way to me - SVID 2, p.86, under fork(ba_os), says "both processes will run as system resources become available". :So, in principle, yes, you're right, but the code works correctly :on "real" System V. It's possibly that way depending on how it is *implemented*, but it does not seem to me that you get any guarantee from the interface *specification*. -- Alex Martelli - (home snailmail:) v. Barontini 27, 40138 Bologna, ITALIA Email: (work:) martelli@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).