Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] shmget fails with error code = 22
- Date: Tue, 15 Jan 2008 20:32:50 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@example.com>
- Subject: [tlug] shmget fails with error code = 22
Hi, The following code has failed and the error code ( errno ) is 22. shmid = shmget((key_t)ShmKey, (size_t)mem_size, 0666 | IPC_CREAT); iErrorCode = errno; I've checked /usr/include/asm/error.h and found that #define EINVAL 22 /* Invalid argument */ which is not very informative. The thing I don't know is: what argument is invalid? This code runs "tamatama" almost perfect until today. A reboot resolves the problem. [vuhung@example.com ]$uname -a Linux vuhung 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 GNU/Linux [vuhung@example.com ]$cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 4) [vuhung@example.com ]$gcc --version | grep GCC gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3) -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) vuhung16plus{remove}@example.com An inquisitive look at Harajuku http://www.flickr.com/photos/vuhung/sets/72157600109218238/
- Follow-Ups:
- Re: [tlug] shmget fails with error code = 22
- From: YAEGASHI Takeshi
- Re: [tlug] shmget fails with error code = 22
- From: Botond Botyanszki
- Re: [tlug] shmget fails with error code = 22
- From: Masanori ITOH
Home | Main Index | Thread Index
- Prev by Date: [tlug] Re: Tlug Digest, Vol 25, Issue 14
- Next by Date: Re: [tlug] shmget fails with error code = 22
- Previous by thread: [tlug] Re: Tlug Digest, Vol 25, Issue 14
- Next by thread: Re: [tlug] shmget fails with error code = 22
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links