in reply to waiting until a file updates...

Why not fork after you write the file? It sounds as though that step will always block the parent -- so why even fork before that step is done?

-Waswas

Replies are listed 'Best First'.
Re: waiting until a file updates...
by cLive ;-) (Prior) on Dec 21, 2002 at 08:48 UTC
    because the parent is doing something else while the child is processing to the point of writing the file, and will always take less time to do it's task (a few hundred DB queries) than the child (who is reading and parsing a web page, and then storing some data from it).

    cLive ;-)

    PS - thank you Zaxo and tachyon - exactly the idea I was missing :)