in reply to Mem shize for a shared mem (shmget)

Hmm, it either allocates how much you ask for, or it fails? What does man shmget say?
  • Comment on Re: Mem shize for a shared mem (shmget)

Replies are listed 'Best First'.
Re^2: Mem shize for a shared mem (shmget)
by vijesh (Novice) on Dec 11, 2013 at 04:01 UTC

    it just returns the shared mem location. Does not say anything about the size. please find some perld

    DB<1> n main::(shm.pl:10): my $id = shmget( $key, $size, &IPC_CREAT | 077 +7 ); DB<1> x shmget( $key, $size, &IPC_CREAT | 0777 ); 0 9142327 DB<2> p $key 90 DB<4> p $size 100 DB<5>
      hello Monks, any help will be appreciated. -Thanks