This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: shmget failed
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 25 Feb 2005 19:29:44 -0000
- Subject: RE: shmget failed
----Original Message----
>From: cygwin-owner On Behalf Of Jennifer Lai
>Sent: 25 February 2005 19:25
> Hi,
> I got bad system call error when I tried to compile a program that
> contains the following code,
>
> shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600);
> where, size = 661552
>
> At first I thought it has to do with the size, but reducing the size to
> 128 still cause bad system call error.
> Does anyone know what caused shmget to fail?
Yes, *you* do. Check errno.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/