Jennifer Lai wrote:
>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
I have handled error in my code,
if (shmid==-1) {
fprintf(stderr, "cannot create shared region.\n");
exit(1);
}
But this code is not executed unless I comment out
shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600);
I read somewhere that ipc-daemon2 should be up and running. So, I checked it,
%
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
>
> A
3 matches
Mail list logo