Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Gary@stek.demon.co.uk (Gary Whitehead)
Subject: Shared Memory
Date: Tue, 24 May 1994 13:45:51 +0000	[thread overview]
Message-ID: <858482140wnr@stek.demon.co.uk> (raw)

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



             reply	other threads:[~1994-05-24 13:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-05-24 13:45 Gary Whitehead [this message]
1994-05-25  1:59 ` Shared Memory Chris Kevlahan
  -- strict thread matches above, loose matches on Subject: below --
1997-10-18  4:00 shared memory Dean Hougen
1997-10-18  4:00 ` Dirk Grunwald
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox