Re: [Exim] Tests needed: semaphores

Pàgina inicial
Delete this message
Reply to this message
Autor: Rudolf Kompf
Data:  
A: Philip Hazel, exim-users
Assumpte: Re: [Exim] Tests needed: semaphores
* Philip Hazel <ph10@???> [010703 16:20]:
> I'm considering making use of semaphores in Exim 4 for things like
> preventing simultaneous identical ETRN runs. (At present it uses a
> hints database.) All the OS that I have tried seem to have the relevant
> facilities (the semctl(), semget(), and semop() functions), though not
> all are quite the same. I have tried Solaris 8, Linux (RH), IRIX,
> FreeBSD, HP-UX, Digital Unix, SunOS4, BSDI, NetBSD and SCO.
>
> I would be grateful if people running other operating systems could run
> the attached test program for me, and let me know what happens. See the
> comments at the start of the program about running it and what to
> expect. It is most likely that if it compiles, it will run OK. There are
> some tweaks you can make for certain compiling problems that I
> encountered on BSDI and NetBSD. They are also mentioned in the comments.


My system is SuSE-Linux 7.1 with kernel 2.4.0.

{rudolf@luna:~/temp}405 > semtest.x
1234 semaphore 65536 created
1235 semaphore exists: waiting
1234 removed semaphore 65536
1235 semaphore 98304 created
1235 removed semaphore 98304
{rudolf@luna:~/temp}406 > semtest.x
1236 semaphore 131072 created
1237 semaphore exists: waiting
1237 semaphore exists: waiting
1236 removed semaphore 131072
1237 semaphore 163840 created
1237 removed semaphore 163840
{rudolf@luna:~/temp}407 > uname -a
Linux luna 2.4.0-4GB #1 Mon Jan 22 16:42:16 GMT 2001 i686 unknown