Hi,
I tied to move the following code into libc.
If I use it from a nomal .o file it works, but if I move it into the
libc (and put a entry into libc.db) it seems, that namer_find hangs.
sema sema_new()
{
static port_name semaport = 0;
if( semaport == 0 ) {
semaport = namer_find(theSemaName);
if (semaport < 0) {
perror("namer_find no semaphore server registert");
exit(1);
}
}
return msg_connect(semaport, ACC_WRITE );
}
?????
Joerg
-----------------------------------------------------------------------------
Joerg Wittenberger | email: joerg.wittenberger@inf.tu-dresden.de
Rietzstr. 32b |
01139 Dresden | http://www.inf.tu-dresden.de/~jw6
Germany | PGP: D4 B2 DA AE C3 02 50 9C 45 3E AD 99 C1 1A 8E F8
Received on Thu Jan 12 06:41:32 1995
This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:17 PDT