stevieb9 / rpi-wiringpi

Perl interface to Raspberry Pi's board, GPIO and various sensors and ICs
7 stars 1 forks source link

running pimeta with an arg, we create arbitrary shm segments #156

Closed stevieb9 closed 5 years ago

stevieb9 commented 5 years ago

This is clearly a bug.

In pimeta and pimetaerase, we need to check if a segment has been already created if an arg is sent in. If not, we need to die().

Consider how to manage this for calling new() as well.

stevieb9 commented 5 years ago

Realistically, we can't just delete shm segs... that could destroy prod information.

Simply croak and provide a warning that there's no shm segment key existing.