You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Pierre-Yves Kerembellec <Pi...@vtcom.fr> on 1997/09/09 12:03:21 UTC

Re[2]: Using semaphore locking

Le [Mon, 8 Sep 1997 16:34:19 -0400 (EDT)], Jim Jagielski ecrivait :

> Ahem,
> 
>      IPC_RMID
> 	 Remove the semaphore identifier specified by semid from
> 	 the system and destroy the set of semaphores and data
> 	 structure associated with it.  This command can only be
> 	 executed by a process that has an effective user ID
> 	 equal to either that of superuser or to the value of
> 	 sem_perm.uid in the data structure associated with
> 	 semid.  The identifier and its associated data
> 	 structure are not actually removed until there are no
> 	 more referencing processes.  See ipcrm(1), and ipcs(1).

Ooops, sorry Jim ! I was wrong !

Regards,
Pierre-Yves

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pierre-Yves KEREMBELLEC         Phone # +33 1 46 12 67 50
VTCOM                           Fax   # +33 1 46 12 67 00
40, rue Gabriel Crie            E-mail  pyk@vtcom.fr
92245 Malakoff Cedex, France    Systemes et Reseaux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Re[2]: Re[2]: Using semaphore locking

Posted by Pierre-Yves Kerembellec <Pi...@vtcom.fr>.
Le [Tue, 9 Sep 1997 06:10:17 -0400 (EDT)], Jim Jagielski ecrivait :

> > > Ahem,
> > > 
> > >      IPC_RMID
> > > 	 Remove the semaphore identifier specified by semid from
> >
> > Ooops, sorry Jim ! I was wrong !
> >
> Actually, I was too. The above behavior isn't standard, esp with
> newer, BSD-based systems.
> 
> Shame, too, because it makes sense. Course, very little about
> SysV IPC _does_ make sense :) :)

Right indeed ! :-((
But this kind of behaviour still continue to shock me at all time,
for example the creat/open/unlink stuff in FLOCK_SERIALIZED and you
still have a valid file descriptor, even if the file does not exist any
more ! Tell me about portability (just try to do the same think under
Windows 32bits OS ...) ;-)

Regards
Pierre-Yves

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Pierre-Yves KEREMBELLEC         Phone # +33 1 46 12 67 50
VTCOM                           Fax   # +33 1 46 12 67 00
40, rue Gabriel Crie            E-mail  pyk@vtcom.fr
92245 Malakoff Cedex, France    Systemes et Reseaux
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=