in reply to flushing shm keys
use IPC::SysV qw(IPC_CREAT IPC_RMID);
$| = 1;
my $key = int( rand(900) ) + 5;
my $size = 100;
my $id = shmget( $key, $size, &IPC_CREAT | 0777 );
print "creating shm key $id";
print "flushing shm key $id";
shmctl( $id, IPC_RMID, 1 );
Thanks you very much.. this works.
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (294 votes). Check out past polls.