Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Arun Sharma <asharma@nospam.netscape.com>
Subject: Re: 'Shared memory' problem
Date: 1997/12/31	[thread overview]
Message-ID: <sn0pvmde7qb.fsf@zugzwang.mcom.com> (raw)
In-Reply-To: 883492008.1327890444@dejanews.com


kamal@wipsys.stph.net writes:

> Hello there,
> 
> 	I have a problem related to shared memory.
> Please see whether you could help me in getting over this.
> 
> In my program, shared memory call, shmat, is setting
> errno as EINVAL(22), when called as
> 	shmat(id,NULL,0);
> 
> These are some observations I made, while debugging.
> 
> * Shared memory with that id exists in the system
>   and already three processes are attached to the same.

How did you reach the conclusion ? What did ipcs(1) show ?
See if you can get hold of strace or truss (I remember that someone
had ported this to DU) and look for the exact system call being made
and the arguments to see if something went wrong.

> * This is the 30th shared memory being attached to
>   the process. However, system's limit on shared segments per
>   process  is set as 64.

This is unlikely to be the problem - you'll get a EMFILE in that case.

	-Arun



  reply	other threads:[~1997-12-31  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-30  5:00 'Shared memory' problem kamal
1997-12-31  5:00 ` Arun Sharma [this message]
1998-01-02  5:00   ` Neal P. Murphy
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