Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 23:01:48 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
Cc:        tlambert@primenet.com, hackers@FreeBSD.ORG
Subject:   Re: portability of shm, mmap, pipes and socket IPC
Message-ID:  <199902110701.XAA88892@apollo.backplane.com>
References:   <99Feb11.162122est.40373@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
:As far as I can tell, this is handled correctly.
:
:through lines 725-746, unwinding any partially commited operations.
:Then there's a tsleep() on semaptr (which is the semaphore
:descriptor).  If the tsleep returns normally, the whole thing is
:repeated courtesy of the for loop covering lines 671-786.
:...

    Looks like the intention of the code is correct to me too,
    though not being a semaphore expert there could still be a bug.

:EIDRM was added (I believe by sos) sometime after 2.2.6.  It's only
:used by sysv_msg.c and sysv_sem.c - and from what I can see, the code
:is all protected by #ifdef EIDRM's, so the code should work correctly,
:whether or not EIDRM is defined.  Someone with commit priv's just
:needs to remove the comment saying it doesn't exist.
:
:Peter

    I added an #error inside the #ifdef EIDRM and the compile bombed,
    so EIDRM is definitely defined from the point of view of the module.

					-Matt
					Matthew Dillon 
					<dillon@backplane.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?199902110701.XAA88892>