httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] SysV semaphores
Date Wed, 06 Aug 1997 19:38:52 GMT


On Wed, 6 Aug 1997, Marc Slemko wrote:

> marcs@alive:/tmp$ ./time-FCNTL 10 40000
>        6.522051
> marcs@alive:/tmp$ ./time-FLOCK 10 40000
>        5.954383
> marcs@alive:/tmp$ ./time-SEM 10 40000
>        6.441648
> 
> P166, FreeBSD 2.1.  Note I had to remove your declaration of the semun
> (nice name) union to make it compile.

Yeah, isn't that great?  Solaris does *NOT* define union semun, but you
definately need one to pass things properly to semctl.

> pthreads one just don't compile (well, it shouldn't on 2.1 and doesn't on
> 2.2), although I may be able to make it try by manually doing the pthreads
> thing.

I'm not sure the stuff I read in the Solaris man page is portable.  Who
knows.

> Oh, BTW, once I got a:
> 
> WTF! shared_counter != 0 before the children have been started!
> 
> using flock.

Uhh, this does not bode well.  Unless my code is broken ... you want to
check?  Oh wait.  Is flock inherited across fork in freebsd?

Dean


Mime
View raw message