From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bab032a0b66e4a2,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-24 13:34:03 PST Newsgroups: comp.unix.osf.osf1 From: Gary@stek.demon.co.uk (Gary Whitehead) Path: bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!rpi!usc!cs.utexas.edu!swrinde!pipex!demon!stek.demon.co.uk!Gary Subject: Shared Memory Distribution: world Organization: Spectra-Tek Uk Ltd Reply-To: Gary@stek.demon.co.uk X-Newsreader: Newswin Alpha 0.4 Date: Tue, 24 May 1994 13:45:51 +0000 Message-ID: <858482140wnr@stek.demon.co.uk> Sender: usenet@demon.co.uk I've moved some code to OSF/1 from ULTRIX which does the following: { int mem_id; char *mem_pool; mem_id = shmget(1, 1024 * 1024, 00666 | IPC_CREAT | IPC_EXCL); mem_pool = (char *)shmat(mem_id, 0, 0); When I run this the first time from bootup, it fails. mem_pool is -1 and errno is set to 24 (EMFILE). However, when I run it again, it works fine. When I remove the shared memory area with 'ipcrm -m' and run it again, it works also. It only fails after a reboot. On ULTRIX, it always worked. I am on OSF/1 1.3A and have tried it on various DEC 3000 AXP machines. Any ideas would be much appreciated, Thanks, Gary Whitehead