Path: utzoo!utgpu!water!watmath!clyde!att!codas!flnexus!sdgsun!lab From: lab@sdgsunsdgsun.com (Larry Baird) Newsgroups: comp.unix.xenix Subject: Re: Test SCO Xenix IPC reliability Message-ID: <105@sdgsunsdgsun.com> Date: 26 Aug 88 21:09:59 GMT References: <166@ispi.UUCP> Organization: Software Design Group, Inc., Maitland, FL Lines: 19 in article <166@ispi.UUCP>, jbayer@ispi.UUCP (id for use with uunet/usenet) says: > > I think Richard is right. I added two sleep(1) to the program, one in > the child() and one in the parent(). With these additions the program > starts up and prints TICK/TOCK even when creating the shared memory > segment for the first time. I enclosed the new program below: An better fix is to move the setting of loc[0] (*loc = 1 and *loc = 0 ) to after there respective kills. The first kill from parent to child will be ignored, but the kill from child to parent will sink up the whole process. -- Larry A. Baird Software Design Group, Inc. Manager, Software Development 800 Trafalgar Ct. Suite 340 UUCP:ucf-cs!sdgsun!lab Maitland, FL 32751 CIS: 72355,171 (407) 660-0006