Too Many Files Open Error During Shared Memory Attach

Conor P. Cahill cpcahil at virtech.uucp
Thu Jun 6 11:34:55 AEST 1991


staggers at casbah.acns.nwu.edu (Ken Staggers) writes:

>CREATE: Cannot attach the shared memory segment: Too many open files

This is one of the reasons that perror is useless.  "Too many open files"
is the perror output for the errno EMFILE.  Looking up shmat() (on the
shmop(2) manual page) we see:

       [EMFILE]       The number of shared memory segments attached
                      to the calling process would exceed the
                      system-imposed limit.

Depending upon your OS configuration parameters, this should be configurable
with a configuration parameter named SHMSEG (or something similar to it).
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list